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
i have tried this below
Using moment.js you have the following methods:
moment.months() // long names
returns:
[ 'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December' ]
and
moment.monthsShort() // short names
returns:
["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]