parsing dates into start and end times needed by check By checkGymAvailability function