How can I remove time from date with Moment.js?

后端 未结 11 2228
予麋鹿
予麋鹿 2020-11-28 03:04
formatCalendarDate = function (dateTime) {
    return moment.utc(dateTime).format(\'LLL\');
};

It displays: \"28 februari 2013 09:24\"

But

11条回答
  •  离开以前
    2020-11-28 03:50

    Use format('LL')

    Depending on what you're trying to do with it, format('LL') could do the trick. It produces something like this:

    Moment().format('LL'); // => April 29, 2016
    

提交回复
热议问题