Date.getUTCDay

Returns the day of the week in the specified date according to universal time.
Method of Date

Syntax

getUTCDay()

Parameters

None

Description

The value returned by getUTCDay is an integer corresponding to the day of the week: 0 for Sunday, 1 for Monday, 2 for Tuesday, and so on.

Examples

The following example assigns the weekday portion of the current date to the variable ms.

See also

Date.getDay, Date.getUTCDate, Date.setUTCDate

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.