Determine Whether Two Date and time Ranges Overlap java code example
Example: javascript check if two date ranges overlap
if((StartDate1 <= EndDate2) && (StartDate2 <= EndDate1)) {
//overlapping dates
}
if((StartDate1 <= EndDate2) && (StartDate2 <= EndDate1)) {
//overlapping dates
}