August 1999
Intermediate to advanced
1488 pages
72h 53m
English
date.getUTCDay()
The getUTCDay() method returns the day of the week converted to universal time and expressed as an integer from 0 (Sunday) to 6 (Saturday).
The code in Listing 6.82 uses the getUTCDay() method to return the day of the week expressed as an integer in universal time. The number is then converted to a string equivalent to the day of the week.
<html>
<script language="JavaScript">
<!-- Hide
//This function converts the day from a number to //a string and returns the string. function getDayString(num) { var day; //Create a local variable ... |
Read now
Unlock full access