fixed the date formatter