make date a date field