Date formatting for time_range

Makes it easier to deal with dates when using time_range.