Dates won't format as dates when converted as headers in table