Export date with specified format

My problem is that I want use PGFplot in $\LaTeX$ to draw my graphs, which x axis is a date. Therefore the output file has to have one column "UTC time" (YYYY-MM-DD hh:mm:ss) and the second one is the corresponding data list.

Would it be possible to specify the date format of Export[] ?

• Use DateString to get the right formatting. Jul 30 '14 at 16:11

DateString[#, {"Year", "-", "Month", "-", "Day", " ", "Hour", ":", "Minute", ":", "Second"}]&/@dates