
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
How to return the day of the week in the specified date according to universal time?
JavaScript date getUTCDay() method returns the day of the week in the specified date according to universal time. 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.
Example
You can try to run the following code to return the day of the week in the specified date −
<html> <head> <title>JavaScript getUTCDay Method</title> </head> <body> <script> var dt = new Date( "January 15, 2018 20:15:20" ); document.write("getUTCDay() : " + dt.getUTCDay() ); </script> </body> </html>
- Related Articles
- Set the day of the month for a specified date according to universal time?
- Set the milliseconds for a specified date according to universal time.
- Set the seconds for a specified date according to universal time.
- Set the minutes for a specified date according to universal time.
- Set the month for a specified date according to universal time.
- Set the hour for a specified date according to universal time?
- Set the full year for a specified date according to universal time.
- How to get day of month, day of year and day of week in android using offset date time API class?
- In MySQL, how we can compute date by providing the year, week number and day of the week?\nday of the week?
- How to get the day of the week in JavaScript?
- How to convert a date to a string using the universal time convention?
- Get the day of week for a particular date in Java
- Get the Day of the Week from Today's Date in Java
- How to return the "time" portion of the Date as a human-readable string.
- Finding day of week from date (day, month, year) in JavaScript

Advertisements