correcting the date format