change the date field type to date