Implemented endDate time filtering