fixed the date formating