Closed KrunchMuffin closed 6 years ago
Datepair.js doesn't have anything built in to help with this, but you could do it by comparing the times:
if ($('#startTime').timepicker('getTime') > $('#endTime').timepicker('getTime')) {
// the time range overlaps midnight
}
Is there a way you can find out if the time range overlaps to next day when only using times? say something like 7pm (sept 20) - 2am (sept 21)