changing dates to string as the date is going to be processed server side