Check time that is conflict on javascript : How to check time is conflict I have a enrolment project and user get subject on the list. Now how to check the time is conflict with others:

var time1 = 10:00AM-12:00:PM;

var time2 = 10:30:AM-11:00:AM;

How to check the time2 is conflict with time1 ? Im using javascript and I cant find solution. Or you may suggest jquery libraries please help. Thanks