converting the date field