Middleware for overriding JSON output date format

Hi all,
Just added some useful func.