Add options dateFormatFn and timeFormatFn

This allows overriding the default date and time formatting functions, which is important for internationalization. Makes it easy to use for example Moment.js.