Returns the day of the month (1 through 31) for the date

Description

getDate()
Returns the day of the month (1 through 31) for the date.

Example


var myDate = new Date();

console.log(myDate.getDate());

The code above generates the following result.





















Home »
  Javascript »
    Javascript Reference »




Array
Canvas Context
CSSStyleDeclaration
CSSStyleSheet
Date
Document
Event
Global
History
HTMLElement
Input Element
Location
Math
Number
String
Window