Visit Mozilla.org

Core JavaScript 1.5 Reference:Global Objects:Date:getUTCDate

From MDC


Contents

[edit] Summary

Returns the day (date) of the month in the specified date according to universal time.

Method of Date
Implemented in: JavaScript 1.3
ECMA Version: ECMA-262

[edit] Syntax

getUTCDate()

[edit] Parameters

None.

[edit] Description

The value returned by getUTCDate is an integer between 1 and 31.

[edit] Examples

[edit] Example: Using getUTCDate

The following example assigns the day portion of the current date to the variable d.

var d;
Today = new Date();
d = Today.getUTCDate(); 

[edit] See Also

getDate, getUTCDay, setUTCDate