format the date time for the export to csv