Get Month Method

The Get Month method returns the month of a date object. For more information, see Values for Dates and Times.

Format

dateVar.getMonth()

The following example returns the number 10, with the result of adding 1 to the month portion of the specified date:

var aDate = new Date("October 31, 1986 12:13:14");
TheApplication().RaiseErrorText(aDate.getMonth() + 1);