javascript check if two date ranges overlap
if((StartDate1 <= EndDate2) && (StartDate2 <= EndDate1)) {
//overlapping dates
}
javascript check if two date ranges overlap
if((StartDate1 <= EndDate2) && (StartDate2 <= EndDate1)) {
//overlapping dates
}
how to check time overlap
public function check_time_overlap($start_time1, $end_time1, $start_time2, $end_time2) {
return (($start_time1) <= ($end_time2) && ($start_time2) < ($end_time1) ? true : false);
}
// true: overlap
// falseL not overlap
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us