Make sure that the date is a string.