Answers for "moment return month name"

1

moment get month name

moment(monthNumber, 'M').format('MMMM')
Posted by: Guest on March-15-2021
0

moment js get date 1 month

var currentDate = moment('2015-10-30');
var futureMonth = moment(currentDate).add(1, 'M');
var futureMonthEnd = moment(futureMonth).endOf('month');

if(currentDate.date() != futureMonth.date() && futureMonth.isSame(futureMonthEnd.format('YYYY-MM-DD'))) {
    futureMonth = futureMonth.add(1, 'd');
}

console.log(currentDate);
console.log(futureMonth);
Posted by: Guest on April-21-2020
0

moment get month short name

console.log(moment().format('DD/MMM'))
Posted by: Guest on August-06-2021

Code answers related to "moment return month name"

Code answers related to "Javascript"

Browse Popular Code Answers by Language