Made the date format part of the formatter's state and implemented some sort of caching for its execution.