Format the date.