Format the date in the table