Javascript - convert number to month name
var months = [ "January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December" ];
var selectedMonthName = months[value['month']];
look at the links
stack 1
Intl.DateTimeFormat('en', { month: 'long' }).format(new Date('1')); // January
Can be achieved using Internationalization API
This can be easily done using moment.js.
var months = [];
months.push(moment().month(0).format("MMMM"));
console.log(months);
<script src="https://momentjs.com/downloads/moment.min.js"></script>