I am trying to integrate full calendar plugin (adam Arshaw’s). I need to display the month name. When i try to alert month.getMonth(); it shows the numeric value of month. ie. for July month it shows 7. I need to display it as full Month. for eg. Jul or July. How is it possible? Please help
Share
Quick, dirty solution. Have an array of months
var months = [‘January’, ‘February’, ‘March’, ‘April’, ‘May’, ‘June’, ‘July’, ‘August’, ‘September’, ‘October’, ‘November’, ‘December’];
Then get the desired full Month by deducting 1 since our array index starts with 0.