![]() |
Date Object![]() ![]() ![]() ![]() ![]()
The date object provides a lot of methods to work with date and time. Some methods work with the Universal Coordinated Time, which is the time set by the World Time Standard. The methods provided by the date object are as follows:
Method Description
getDate() Obtains the day of the month or sets the day of the
month
getUTCDate()
setDate()
setUTCDate()
getaway() Obtains the day of the week or sets the day of the week
getUTCDayo
getHourso Obtains the hour or sets the hour
getUTCHourso
A
setHours()
setUTCHours()
getMinutes() Obtains the minutes or sets the minutes
getUTCMinutes()
setMinutes()
setUTCMinutes()
getMilliseconds() Obtains or sets the milliseconds
getUTCMilliseconds()
setMilliseconds()
setUTCMilliseconds()
getMonth() Obtains the month of the Date() object or sets the month
getUTCMonth()
setMonth()
setUTCMonth()
getSeconds() Obtains the seconds or sets the seconds of the Date
object
getUTCSeconds()
setSeconds()
setUTCSeconds()
getTime() Obtains the time or sets the time
setTime()
getYear() Obtains the year or sets the year
setYear()
getFullYear() Obtains the year in four digit values or sets the year in
four digit values.
getUTCFullYear()
setFullYear()
setUTCFullYear()
ToGMTString() Converts the date to a string in Internet Greenwich Mean
Time Format
|
|
Domain NamesJAVASCRIPT Types of Variables Arrays Data Type Conversion Arithmetic Operators Logical and Comparison Operators Assignment Operators Ternary Operators Operator Precedence Assignment Statements If StatementsSwitch Statement Function Call Statement Try, Catch and Throw Statements The For Loop Java While Loop The Do While Loop Break and Continue Statements
String Methods Array Methods Objects, Methods and Properties The Boolean Object The Date Object The Global Object The Math Object
The Number Object Color Constants Hierarchy of Browser Objects Window Object Document Object History Object Navigator Object Buttons Check Box Radio Buttons Text FieldsWorking with Image Maps Creating Simple Animation Hidden Fields Working with Style Sheets An Example of HTML Graphics Replacement The <SPAN> Tag Positioning of HTML Content The <LAYER> TagWeb DesignWeb HostingE Commerce |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |