Fix formatting of dateformat