fix date formatter

because of how the formatter is called (a direct reference to the
function rather than the formatter object), 'this' is incorrect, so
it is changed to use an explicit reference instead.