changing starttime to dt