changed date formatting to use strftime