I want to get all months name from year in moment.js
if the year is 2011, then i want to all months name in momentjs
2011
i have tried this below
Why does the year matter? Month names don't change.
You could get month names from Moment like so:
var m = moment(); for (var i = 0; i < 12; i++) { console.log(m.months(i).format('MMMM')); }