populating the start and end dates