\\
| Method Summary | |
|---|---|
| Number | getDate() Gets the day of month. |
| Number | getDay() Gets the day of the week (sunday = 0). |
| Number | getFullYear() Gets the full year of the date. |
| Number | getHours() Gets the hours of the date. |
| Number | getMilliseconds() Gets the milliseconds of the date. |
| Number | getMinutes() Gets the minutes of the date. |
| Number | getMonth() Gets the month of the date. |
| Number | getSeconds() Gets the seconds of the date. |
| Number | getTime() The value returned by the getTime method is the number of milliseconds since 1 January 1970 00:00:00. |
| Number | getTimezoneOffset() Gets the number of minutes between GMT and this date. |
| Number | getUTCDate() Gets the UTC date. |
| Number | getUTCDay() Gets the day in UTC time. |
| Number | getUTCFullYear() Gets the full year in UTC time. |
| Number | getUTCHours() Gets the hours in UTC time. |
| Number | getUTCMilliseconds() Gets the milliseconds in UTC time. |
| Number | getUTCMinutes() Gets the minutes in UTC time. |
| Number | getUTCMonth() Gets the month in UTC time. |
| Number | getUTCSeconds() Gets the seconds in UTC time. |
| void | setDate(dayValue) Sets the date. |
| void | setFullYear(yearValue, monthValue, dayValue) Sets the full year of the date. |
| void | setHours(hoursValue, minutesValue, secondsValue, msValue) Sets the hours of the date. |
| void | setMilliseconds(millisecondsValue) Sets the milliseconds of the date. |
| void | setMinutes(minutesValue, secondsValue, msValue) Sets the minutes of the date. |
| void | setMonth(monthValue, dayValue) Sets the month of the date. |
| void | setSeconds(secondsValue, msValue) Sets the seconds of the date. |
| void | setTime(timeValue) Sets the milliseconds of the date. |
| void | setUTCDate(dayValue) Sets the UTC date. |
| void | setUTCFullYear(yearValue, monthValue, dayValue) Sets the year in UTC time. |
| void | setUTCHours(hoursValue, minutesValue, secondsValue, msValue) Sets the hours in UTC time. |
| void | setUTCMilliseconds(millisecondsValue) Sets the milliseconds in UTC time. |
| void | setUTCMinutes(minutesValue, secondsValue, msValue) Sets the minutes in UTC time. |
| void | setUTCMonth(monthValue, dayValue) Sets the month in UTC time. |
| void | setUTCSeconds(secondsValue, msValue) Sets the seconds in UTC time. |
| void | setYear(yearValue) Sets the year of the date. |
| String | toDateString() Returns a string version of the date. |
| String | toLocaleDateString() Returns a string version of the local time zone of the date. |
| String | toLocaleString() Returns a string version of the local time zone of the date. |
| String | toLocaleTimeString() Returns a string version of the local time zone of the date. |
| String | toTimeString() Returns a string version of the date. |
| String | toUTCString() Returns a string version of the UTC value of the date. |
| Number | valueOf() Return integer milliseconds count |
| Method Details |
|---|
getDate |
| NumbergetDate() |
Gets the day of month. |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getDate |
Sampledate.getDate(); |
getDay |
| NumbergetDay() |
Gets the day of the week (sunday = 0). |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getDay |
Sampledate.getDay(); |
getFullYear |
| NumbergetFullYear() |
Gets the full year of the date. |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getFullYear |
Sampledate.getFullYear(); |
getHours |
| NumbergetHours() |
Gets the hours of the date. |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getHours |
Sampledate.getHours(); |
getMilliseconds |
| NumbergetMilliseconds() |
Gets the milliseconds of the date. |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getMilliseconds |
Sampledate.getMilliseconds(); |
getMinutes |
| NumbergetMinutes() |
Gets the minutes of the date. |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getMinutes |
Sampledate.getMinutes(); |
getMonth |
| NumbergetMonth() |
Gets the month of the date. |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getMonth |
Sampledate.getMonth(); |
getSeconds |
| NumbergetSeconds() |
Gets the seconds of the date. |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getSeconds |
Sampledate.getSeconds(); |
getTime |
| NumbergetTime() |
The value returned by the getTime method is the number of milliseconds since 1 January 1970 00:00:00. |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getTime |
Sampledate.getTime(); |
getTimezoneOffset |
| NumbergetTimezoneOffset() |
Gets the number of minutes between GMT and this date. |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getTimezoneOffset |
Sampledate.getTimezoneOffset(); |
getUTCDate |
| NumbergetUTCDate() |
Gets the UTC date. |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCDate |
Sampledate.getUTCDate(); |
getUTCDay |
| NumbergetUTCDay() |
Gets the day in UTC time. |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCDay |
Sampledate.getUTCDay(); |
getUTCFullYear |
| NumbergetUTCFullYear() |
Gets the full year in UTC time. |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCFullYear |
Sampledate.getUTCFullYear(); |
getUTCHours |
| NumbergetUTCHours() |
Gets the hours in UTC time. |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCHours |
Sampledate.getUTCHours(); |
getUTCMilliseconds |
| NumbergetUTCMilliseconds() |
Gets the milliseconds in UTC time. |
| Returns |
| External links |
Sampledate.getUTCMilliseconds(); |
getUTCMinutes |
| NumbergetUTCMinutes() |
Gets the minutes in UTC time. |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCMinutes |
Sampledate.getUTCMinutes(); |
getUTCMonth |
| NumbergetUTCMonth() |
Gets the month in UTC time. |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCMonth |
Sampledate.getUTCMonth(); |
getUTCSeconds |
| NumbergetUTCSeconds() |
Gets the seconds in UTC time. |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/getUTCSeconds |
Sampledate.getUTCSeconds(); |
setDate |
| voidsetDate(dayValue) |
Sets the date. |
| Parameters dayValue |
| Returns void |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setDate |
Sampledate.setDate(integer); |
setFullYear |
| voidsetFullYear(yearValue, monthValue, dayValue) |
Sets the full year of the date. |
| Parameters yearValue |
| Returns void |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setFullYear |
Sampledate.setFullYear(integer); |
setHours |
| voidsetHours(hoursValue, minutesValue, secondsValue, msValue) |
Sets the hours of the date. |
| Parameters hoursValue |
| Returns void |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setHours |
Sampledate.setHours(integer); |
setMilliseconds |
| voidsetMilliseconds(millisecondsValue) |
Sets the milliseconds of the date. |
| Parameters millisecondsValue |
| Returns void |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setMilliseconds |
Sampledate.setMilliseconds(integer); |
setMinutes |
| voidsetMinutes(minutesValue, secondsValue, msValue) |
Sets the minutes of the date. |
| Parameters minutesValue |
| Returns void |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setMinutes |
Sampledate.setMinutes(integer); |
setMonth |
| voidsetMonth(monthValue, dayValue) |
Sets the month of the date. |
| Parameters monthValue |
| Returns void |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setMonth |
Sampledate.setMonth(integr); |
setSeconds |
| voidsetSeconds(secondsValue, msValue) |
Sets the seconds of the date. |
| Parameters secondsValue |
| Returns void |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setSeconds |
Sampledate.setSeconds(integer); |
setTime |
| voidsetTime(timeValue) |
Sets the milliseconds of the date. |
| Parameters timeValue |
| Returns void |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setTime |
Sampledate.setTime(integer); |
setUTCDate |
| voidsetUTCDate(dayValue) |
Sets the UTC date. |
| Parameters dayValue |
| Returns void |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setUTCDate |
Sampledate.setUTCDate(integer); |
setUTCFullYear |
| voidsetUTCFullYear(yearValue, monthValue, dayValue) |
Sets the year in UTC time. |
| Parameters yearValue |
| Returns void |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setUTCFullYear |
Sampledate.setUTCFullYear(integer); |
setUTCHours |
| voidsetUTCHours(hoursValue, minutesValue, secondsValue, msValue) |
Sets the hours in UTC time. |
| Parameters hoursValue |
| Returns void |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setUTCHours |
Sampledate.setUTCHours(integer); |
setUTCMilliseconds |
| voidsetUTCMilliseconds(millisecondsValue) |
Sets the milliseconds in UTC time. |
| Parameters millisecondsValue |
| Returns void |
| External links |
Sampledate.setUTCMilliseconds(integer); |
setUTCMinutes |
| voidsetUTCMinutes(minutesValue, secondsValue, msValue) |
Sets the minutes in UTC time. |
| Parameters minutesValue |
| Returns void |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setUTCMinutes |
Sampledate.setUTCMinutes(integer); |
setUTCMonth |
| voidsetUTCMonth(monthValue, dayValue) |
Sets the month in UTC time. |
| Parameters monthValue |
| Returns void |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setUTCMonth |
Sampledate.setUTCMonth(integer); |
setUTCSeconds |
| voidsetUTCSeconds(secondsValue, msValue) |
Sets the seconds in UTC time. |
| Parameters secondsValue |
| Returns void |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setUTCSeconds |
Sampledate.setUTCSeconds(integer); |
setYear |
| voidsetYear(yearValue) |
Sets the year of the date. |
| Parameters yearValue |
| Returns void |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/setYear |
Sampledate.setYear(integer); |
toDateString |
| StringtoDateString() |
Returns a string version of the date. |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toDateString |
Sampledate.toDateString(); |
toLocaleDateString |
| StringtoLocaleDateString() |
Returns a string version of the local time zone of the date. |
| Returns |
| External links |
Sampledate.toLocaleDateString(); |
toLocaleString |
| StringtoLocaleString() |
Returns a string version of the local time zone of the date. |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toLocaleString |
Sampledate.toLocaleString(); |
toLocaleTimeString |
| StringtoLocaleTimeString() |
Returns a string version of the local time zone of the date. |
| Returns |
| External links |
Sampledate.toLocaleTimeString(); |
toTimeString |
| StringtoTimeString() |
Returns a string version of the date. |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toTimeString |
Sampledate.toTimeString(); |
toUTCString |
| StringtoUTCString() |
Returns a string version of the UTC value of the date. |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/toUTCString |
Sampledate.toUTCString(); |
valueOf |
| NumbervalueOf() |
Return integer milliseconds count |
| Returns |
| External links https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date/valueOf |
Sampledate.valueOf(integer); |