jonthornton / Datepair.js

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

Minimum time delta? #90

Closed mfields3 closed 7 years ago

mfields3 commented 7 years ago

How would I go about disabling the 0 minute option for the end time?

jonthornton commented 7 years ago

Datepair won't enforce a minimum timedelta. Your best bet is to use getTimeDiff() and show a validation error to the user.