AutoDateFormatter: More customizable formatting
This allows custom functions to be used for formatting in the style of
FuncFormatter.
Updated @megies' PR to include a test and some other tweaks.
Merge pull request #2707 from pelson/callable_date_formatter

Callable date formatter