getMonth()
Overview - definition
Returns the month (from 0-11)
Usage
The getMonth() method returns the month (from 0 to 11) for the specified date, according to local time. For example: January is 0, February is 1, ...
Results
A Number, from 0 to 11, representing the month of the year
Examples
var vDate = new Date();
var vMonth = vDate.getMonth();
var vdate = new Date();
var vmonthname = new Array();
vmonthname[0] = "January";
vmonthname[1] = "February";
vmonthname[2] = "March";
vmonthname[3] = "April";
vmonthname[4] = "May";
vmonthname[5] = "June";
vmonthname[6] = "July";
vmonthname[7] = "August";
vmonthname[8] = "September";
vmonthname[9] = "October";
vmonthname[10] = "November";
vmonthname[11] = "December";
var n = vmonthname[vdate.getMonth()];
var vdate = new Date();
var vmonthname = new Array();
vmonthname[0] = "Janeiro";
vmonthname[1] = "Fevereiro";
vmonthname[2] = "Março";
vmonthname[3] = "Abril";
vmonthname[4] = "Maio";
vmonthname[5] = "Junho";
vmonthname[6] = "Julho";
vmonthname[7] = "Augosto";
vmonthname[8] = "Setembro";
vmonthname[9] = "Outubro";
vmonthname[10] = "Novembro";
vmonthname[11] = "Dezembro";
var n = vmonthname[vdate.getMonth()]
Summary CA Process Automation
Summary CA Service Management Community
Service Desk Manager 15 days Implementation
CABI:: Summary - BOXI for CA SDM
Summary CA SDM Scoreboard
Was useful, please leave your feedback!