If min and max are just the date, set date. If time, set time.