added support for start and enddate for schedules