fixing the date format