Clear Up
SharpKit Reference

JsDate Class

Namespace: SharpKit.JavaScript

Base Types

Methods

Name Description
getDate() Returns the day-of-the-month value in a Date object using local time.
getDay() Returns the day of the week value in a Date object using local time.
getFullYear() Returns the year value in the Date object using local time.
getHours() Returns the hours value in a Date object using local time.
getMilliseconds() Returns the milliseconds value in a Date object using local time.
getMinutes() Returns the minutes value in a Date object using local time.
getMonth() Returns the month value in the Date object using local time.
getSeconds() Returns the seconds value in a Date object using local time.
getTime() Returns the time value in a Date object.
getTimezoneOffset() Returns the difference in minutes between the time on the host computer and Universal Coordinated Time (UTC).
getUTCDate() Returns the day-of-the-month value in a Date object using Universal Coordinated Time (UTC).
getUTCDay() Returns the day of the week value in a Date object using Universal Coordinated Time (UTC).
getUTCFullYear() Returns the year value in a Date object using Universal Coordinated Time (UTC).
getUTCHours() Returns the hours value in a Date object using Universal Coordinated Time (UTC).
getUTCMilliseconds() Returns the milliseconds value in a Date object using Universal Coordinated Time (UTC).
getUTCMinutes() Returns the minutes value in a Date object using Universal Coordinated Time (UTC).
getUTCMonth() Returns the month value in a Date object using Universal Coordinated Time (UTC).
getUTCSeconds() Returns the seconds value in a Date object using Universal Coordinated Time (UTC).
getYear() Returns the year value in a Date object. This method is obsolete, and is provided for backwards compatibility only. Use the getFullYear method instead. For the years 1900 though 1999, the year is a 2-digit integer value returned as the difference between the stored year and 1900. For dates outside that period, the 4-digit year is returned. For example, 1996 is returned as 96, but 1825 and 2025 are returned as-is.
parse(JsString) Parses a JsString containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
setDate(JsNumber) Sets the numeric day-of-the-month value of the Date object using local time.
setFullYear(JsNumber) Sets the year value in the Date object using local time.
setFullYear(JsNumber, JsNumber) Sets the year value in the Date object using local time.
setFullYear(JsNumber, JsNumber, JsNumber) Sets the year value in the Date object using local time.
setHours(JsNumber) Sets the hour value in the Date object using local time.
setHours(JsNumber, JsNumber) Sets the hour value in the Date object using local time.
setHours(JsNumber, JsNumber, JsNumber) Sets the hour value in the Date object using local time.
setHours(JsNumber, JsNumber, JsNumber, JsNumber) Sets the hour value in the Date object using local time.
setMilliseconds(JsNumber) Sets the milliseconds value in the Date object using local time.
setMinutes(JsNumber) Sets the minutes value in the Date object using local time.
setMinutes(JsNumber, JsNumber) Sets the minutes value in the Date object using local time.
setMinutes(JsNumber, JsNumber, JsNumber) Sets the minutes value in the Date object using local time.
setMonth(JsNumber) Sets the month value in the Date object using local time.
setMonth(JsNumber, JsNumber) Sets the month value in the Date object using local time.
setSeconds(JsNumber) Sets the seconds value in the Date object using local time.
setSeconds(JsNumber, JsNumber) Sets the seconds value in the Date object using local time.
setTime(JsNumber) Sets the date and time value in the Date object.
setUTCDate(JsNumber) Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
setUTCFullYear(JsNumber) Sets the year value in the Date object using Universal Coordinated Time (UTC).
setUTCFullYear(JsNumber, JsNumber) Sets the year value in the Date object using Universal Coordinated Time (UTC).
setUTCFullYear(JsNumber, JsNumber, JsNumber) Sets the year value in the Date object using Universal Coordinated Time (UTC).
setUTCHours(JsNumber) Sets the hours value in the Date object using Universal Coordinated Time (UTC).
setUTCHours(JsNumber, JsNumber) Sets the hours value in the Date object using Universal Coordinated Time (UTC).
setUTCHours(JsNumber, JsNumber, JsNumber) Sets the hours value in the Date object using Universal Coordinated Time (UTC).
setUTCHours(JsNumber, JsNumber, JsNumber, JsNumber) Sets the hours value in the Date object using Universal Coordinated Time (UTC).
setUTCMilliseconds(JsNumber) Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
setUTCMinutes(JsNumber) Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
setUTCMinutes(JsNumber, JsNumber) Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
setUTCMinutes(JsNumber, JsNumber, JsNumber) Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
setUTCMonth(JsNumber) Sets the month value in the Date object using Universal Coordinated Time (UTC).
setUTCMonth(JsNumber, JsNumber) Sets the month value in the Date object using Universal Coordinated Time (UTC).
setUTCSeconds(JsNumber) Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
setUTCSeconds(JsNumber, JsNumber) Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
setYear(JsNumber) Sets the year value in the Date object.
toDateString() Returns a date as a JsString value.
toGMTString() Returns a date converted to a JsString using Greenwich Mean Time(GMT). Obsolete, and is provided for backwards compatibility only. It is recommended that you use the toUTCString method instead.
toJSON() Used by the JSON.stringify method to enable the transformation of an object's data of before the JSON serialization.
toLocaleDateString() Returns a date as a JsString value appropriate to the host environment's current locale.
toLocaleTimeString() Returns a time as a JsString value appropriate to the host environment's current locale.
toTimeString() Returns a time as a JsString value.
toUTCString() Returns a date converted to a JsString using Universal Coordinated Time (UTC).
UTC(JsNumber, JsNumber, JsNumber) Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the supplied date.
UTC(JsNumber, JsNumber, JsNumber, JsNumber) Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the supplied date.
UTC(JsNumber, JsNumber, JsNumber, JsNumber, JsNumber) Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the supplied date.
UTC(JsNumber, JsNumber, JsNumber, JsNumber, JsNumber, JsNumber) Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the supplied date.
UTC(JsNumber, JsNumber, JsNumber, JsNumber, JsNumber, JsNumber, JsNumber) Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the supplied date.
valueOf() Returns the primitive value of the specified object.
© Copyright 2005-2011 SharpKit. All rights reserved.