I want to get month name from two digit month number (ex- 09). I tried with this code. But it doesn\'t work. The code give current month name only. What are the correct code for
You need to pass the month as a number, not text - so...
var formattedMonth = moment().month(9).format('MMMM'); console.log(formattedMonth)
Result: October