jonthornton / Datepair.js

A javascript plugin for intelligently selecting date and time ranges, inspired by Google Calendar.
https://www.jonthornton.com/Datepair.js
359 stars 85 forks source link

How can I get the duration value? #8

Closed davidflores2 closed 10 years ago

davidflores2 commented 10 years ago

Is there a way of getting the duration value straight from datepair? I'm trying to get the difference between the start and end time. I can see the duration when using showDuration; however, I want to get that value to pass it as an input in a function I'm building. Is there a way to do this?

Thanks,

David

jonthornton commented 10 years ago

Use the getTimeDiff method.