getUTCDate()  Date  instance method getterS2C Home  « Globals « Date « getUTCDate()

Description

Returns the UTC day of the month (1-31) for the specified date.

Syntax

Signature Description
aDate.getUTCDate()Returns the UTC day of the month (1-31) for the specified date.

Parameters

None.

Examples

The code below shows an example of the getUTCDate() method of Date.


// Create a Date instance for the current date and time.
var todaysDate = new Date();
alert(todaysDate);

// Get UTC Day of the month.
alert(todaysDate.getUTCDate());

Press the button below to action the above code:


Related Tutorials

JavaScript Intermediate Tutorials - Lesson 2 - Dates and Times

go to home page Homepage go to top of page Top