Can now pass a function to date formatter

To format the date using an external library like moment.js