Using DateTime rather than date for to_date.