date output formatting for csv.