Returns the numeric value of the day of the month.

Syntax

<oRef>.getDate( )

<oRef>

The Date object whose corresponding day-of-the-month number you want to return.

Property of

Date

Description

The getDate( ) method returns a date's day of the month number—a value from 1 to 31. If the Date object contains a blank date, the getDate( ) method returns 0.