This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

getUTCDate

Summary

Gets the day-of-the-month, using Universal Coordinated Time (UTC).

Syntax

dateObj.getUTCDate()

Return Value

Returns an integer between 1 and 31 that represents the day-of-the-month.

Examples

The following example shows how to use the getUTCDate method.

var date = new Date("1/23/2001");
 document.write(date.getUTCDate());

 // Output: 23

Remarks

The required dateObj reference is a Date object. To get the day of the month using local time, use the getDate method.

See also

Other articles

Attributions

  • Microsoft Developer Network: Article