correction for date formatting