pandas.to_csv() has a parse_dates option to infer datetimes. However, on its own it is extremely slow with large datasets.
It can be augmented with a date_parser para