added date formatting into the formatter