correct the date format