Get Day of Month Method

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

Format

dateVar.getDate()

The following example returns a value of 7, the day part of the date object:

function Button2_Click ()
{
   var MyBirthdayDay = new Date("1958", "11", "7");
   TheApplication().RaiseErrorText("My birthday is on day " +
      MyBirthdayDay.getDate() + ".");
}