Resolved issue with dates.
Implemented startDate and endDate.