Corrected date formatting to use strftime instead of format