Latest web development tutorials

JavaScript getUTCDate () method

Date Object Reference JavaScript Date Object

Examples

Returns the month (UTC) in a world based on the Day:

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

n output:


try it"

Definition and Usage

getUTCDate () method returns the month (UTC) in the world based on a certain day.

Coordinated Universal Time (UTC) in seconds when the atomic length based on the time metering system as close as possible in a time when the world.

Tip: Coordinated Universal Time, also known as the unified world time, Universal Time, Coordinated Universal Time, abbreviated UTC (Universal Coordinated Time).

Note: UTC time is the GMT (Greenwich Mean) time.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

getUTCDate () All major browsers support getUTCDate () method


grammar

Date.getUTCDate()

return value

类型 描述
Number 返回该月中的某一天 (是 1 ~ 31 中的一个值)。

technical details

JavaScript version: 1.3


More examples

Examples

Here we define a variable with a specific date and then according to UTC output variables of the month of the day:

var d = new Date("July 21, 1983 01:15:00");
var n = d.getUTCDate();

n output:


try it"


Date Object Reference JavaScript Date Object