Obsivus Obsivus - 5 months ago 158x
Javascript Question

How can I remove time from my date with moment.js?

formatCalendarDate = function (dateTime) {
return moment.utc(dateTime).format('LLL');

It displays: "28 februari 2013 09:24"

But I would like to remove the time at the end how can I do that?



Sorry to jump in so late, but if you're really wanting to remove the time portion of a moment() rather than just formatting it, then the code is:


Ref: http://momentjs.com/docs/#/manipulating/start-of/