Format time to dates.