fixing incorrect date formatting