Use dateFormat in HtmlFormatter