change date to a string