HTML and CSS Reference
In-Depth Information
JavaScript Element
Description
getUTCDate()
Returns the UTC getDate() value
getUTCDay()
Returns the UTC getDay() value
getUTCFullYear()
Returns the UTC getFullYear() value
getUTCHours()
Returns the UTC getHours() value
getUTCMilliseconds()
Returns the UTC getMilliseconds() value
getUTCMinutes()
Returns the UTC getMinutes() value
getUTCMonth()
Returns the UTC getMonth() value
getUTCSeconds()
Returns the UTC getSeconds() value
getUTCTime()
Returns the UTC getTime() value
getUTCYear()
Returns the UTC getYear() value
now()
Returns the current time in milliseconds
parse( date )
Parses the date, returning the date value in milliseconds
setDate( date )
Sets the day of the month to the value specified in date
setFullYear( year )
Sets the year to the four-digit value specified in year
setHours( hour )
Sets the hour to the value specified in hou r
setMilliseconds( milliseconds )
Sets the millisecond value to milliseconds
setMinutes( minutes )
Sets the minute to the value specified in minutes
setMonth( month )
Sets the month to the value specified in month
setSeconds( seconds )
Sets the second to the value specified in seconds
setTime( time )
Sets the time using the value specified in time , where time is a variable containing
the number of milliseconds since December 31, 1969, at 18:00:00
setUTCDate( date )
Applies the setDate() method in UTC time
Applies the setFullYear() method in UTC time
setUTCFullYear( year )
setUTCHours( hour )
Applies the setHours() method in UTC time
setUTCMilliseconds
( milliseconds )
Applies the setMilliseconds() method in UTC time
setUTCMinutes( minutes )
Applies the setMinutes() method in UTC time
setUTCMonth( month )
Applies the setMonth() method in UTC time
setUTCSeconds( seconds )
Applies the setSeconds() method in UTC time
setUTCTime( time )
Applies the setTime() method in UTC time
setUTCYear( year )
Applies the setYear() method in UTC time
setYear( year )
Sets the year to the value specified in year
toDateString()
Returns a date as a string value
toISOString()
Returns a string representation of the date based on the ISO-8601 standard
toJSON( key )
Uses the JSON.stringify() method convert the date to a string where key is an argu-
ment of the JSON.stringify() method
toLocaleDateString()
Returns a date as a string value
toTimeString()
Returns a time as a string value
toGMTString()
Converts the current date to a text string in Greenwich Mean Time
toLocaleString()
Converts a date object's date to a text string, using the date format the Web
browser is set up to use
toSource
String representing the source code of the object
toString()
String representation of a Date object
toUTCString()
Date converted to string using UTC
Search WWH ::




Custom Search