formatted startTime and endtime