changing the date field instead of string