August 1999
Intermediate to advanced
1488 pages
72h 53m
English
date.getUTCMonth()
The getUTCMonth() method returns the month portion of the Date object converted to universal time and expressed as an integer from 0 (January) to 11 (December).
The code in Listing 6.87 uses the getUTCMonth() method to return the current month, expressed as an integer, in universal time. The integer is converted to string representation of the month.
<html> <script language="JavaScript"> <!–– Hide //This function converts the month from a number to //a string and returns the string. function getMonthString(num) { var month; //Create a local ... |
Read now
Unlock full access