Added date checking for start and end time for event