format start and end times