Changing format of the date field to text string