fixed formatting of date