formated the date