Siebel eScript Language Reference > Methods Reference > Date and Time Methods >

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()

Example

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);

Siebel eScript Language Reference Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.