minor fix to the date formater