Main Page

setFullYear

Method
Description
setFullYear(
year
)
Sets the year of the date, which must be given as a
four-digit year.
setUTCFullYear(
year
)
Sets the year of the UTC date, which must be given as
a four-digit year.
getMonth()
Returns the month of the date, represented by the
numbers 0 (for January) through 11 (for December).
getUTCMonth()
Returns the month of the UTC date, represented
by the numbers 0 (for January) through 11 (for
December).
setMonth(
month
)
Sets the month of the date, which is any number 0 or
greater. Numbers greater than 11 begin to add years.
setUTCMonth(
month
)
Sets the month of the UTC date, which is any number
0 or greater. Numbers greater than 11 begin to add
years.
getDate()
Returns the date, which is the day of the month, of the
date value.
getUTCDate()
Returns the date, which is the day of the month, of the
UTC date value.
setDate(
date
)
Sets the day of the month of the date.
setUTCDate(
date
)
Sets the day of the month of the UTC date.
getDay()
Returns the day of the week of the date.
getUTCDay()
Returns the day of the week of the UTC date.
setDay(
day
)
Sets the day of the week of the date.
setUTCDay(
day
)
Sets the day of the week of the UTC date.
getHours()
Returns the hours of the date time.
getUTCHours()
Returns the hours of the UTC date time.
setHours(
hours
)
Sets the hours of the date time.
setUTCHours(
hours
)
Sets the hours of the UTC date time.
getMinutes()
Returns the minutes of the date time.
getUTCMinutes()
Returns the minutes of the UTC date time.
setMinutes(
minutes
)
Sets the minutes of the date time.
setUTCMinutes(
minutes
)
Sets the minutes of the UTC date time.
getSeconds()
Returns the seconds of the date time.
getUTCSeconds()
Returns the seconds of the UTC date time.
setSeconds(
seconds
)
Sets the seconds of the date time.
80
Chapter 3
06_579088 ch03.qxd 3/28/05 11:36 AM Page 80


JavaScript EditorFree JavaScript Editor     Ajax Editor


©

R7