correcting date formatting for output files