Replaced Date with Time to build date ranges