Changed DatePeriod to DateTimeRange.