I'm trying to extend moment's toString function to return the date in a different format.
I.e. I want to create momentDate as below:
// Will return "Sat Dec 12 2015 00:00:00 GMT+1100"
moment('2015-12-12').toString();
// Will return a custom format, e.g. "2015-12-12"
momentDate('2015-12-12').toString();
I've been trying with no success. I'm not sure if it's even possible because of how moment is written so I thought I would ask here.