Microsoft® JScript™ getDate Method | Language Reference Version 1

See Also Applies To

##### Description

> Returns the day of the month as stored in a Date object according to local time.

##### Syntax

> objDate.getDate()

##### Remarks

> To get the date value according to Universal Coordinated Time (UTC), use the getUTCDate method.

> The return value is an integer between 1 and 31 that represents the date stored in the Date object.

> The following example illustrates the use of the getDate method:

> >     function DateDemo()
> >     {
> >       var d, s = "Today's date is: ";
> >       d = new Date();
> >       s += (d.getMonth() + 1) + "/";
> >       s += d.getDate() + "/";
> >       s += d.getYear();
> >       return(s);
> >     }

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.