A Javascript Date object wrapper that extends the functionality of the JavaScript Date object.
The following tables list the members exposed by the DateTime type.
Name | Description | |
---|---|---|
Initializes a new instance of the DateTime class. |
Name | Description | |
---|---|---|
Gets the date component of this DateTime object. |
||
Gets the day component of the date represented by this DateTime instance. |
||
Gets the day of the week represented by this DateTime. |
||
Gets the number of days in the month represented by this DateTime. |
||
Gets the hour component of the date represented by this DateTime instance. |
||
Gets the millisecond component of the date represented by this DateTime instance. |
||
Gets the minute component of the date represented by this DateTime instance. |
||
Gets the month component of the date represented by this DateTime instance. |
||
Gets the second component of the date represented by this DateTime instance. |
||
Gets the time component of this DateTime object, expressed in milliseconds. |
||
Gets the year component of the date represented by this DateTime instance. |
Name | Description | |
---|---|---|
Gets the day component of this DateTime instance. |
||
Gets the day of the week component of this DateTime instance. |
||
Gets the year component of this DateTime instance. |
||
Gets the hours component of this DateTime instance. |
||
Gets the milliseconds component of this DateTime instance. |
||
Gets the minutes component of this DateTime instance. |
||
Gets the month component of this DateTime instance. |
||
Gets the seconds component of this DateTime instance. |
||
Gets the number of milliseconds between Jan 1 1970 00:00:00 and this DateTime instance. |
||
Gets the difference between GMT and local time in minutes. |
||
Gets the day component of this DateTime instance, according to universal time. |
||
Gets the day of the week component of this DateTime instance, according to universal time. |
||
Gets the year component of this DateTime instance, according to universal time. |
||
Gets the hours component of this DateTime instance, according to universal time. |
||
Gets the milliseconds component of this DateTime instance, according to universal time. |
||
Gets the minutes component of this DateTime instance, according to universal time. |
||
Gets the month component of this DateTime instance, according to universal time. |
||
Gets the seconds component of this DateTime instance, according to universal time. |
||
Sets the day component of this DateTime instance. |
||
Sets the year component of this DateTime instance. |
||
Sets the hours component of this DateTime instance. |
||
Sets the milliseconds component of this DateTime instance. |
||
Sets the minutes component of this DateTime instance. |
||
Sets the seconds component of this DateTime instance. |
||
Sets a date and time by adding or subtracting a specified number of milliseconds to/from midnight 1 Jan 1970. |
||
Sets the day component of this DateTime instance, according to universal time. |
||
Sets the year component of this DateTime instance, according to universal time. |
||
Sets the hours component of this DateTime instance, according to universal time. |
||
Sets the milliseconds component of this DateTime instance, according to universal time. |
||
Sets the minutes component of this DateTime instance, according to universal time. |
||
Sets the seconds component of this DateTime instance, according to universal time. |
||
Converts the date component of this DateTime instance to a readable string. |
||
Converts the date component of this DateTime instance to a readable string, using locale conventions. |
||
Converts this DateTime instance to a readable string, using locale conventions. |
||
Converts the time component of this DateTime instance to a readable string, using locale conventions. |
||
Converts this DateTime instance to a readable string. |
||
Converts the time component of this DateTime instance to a readable string. |
||
Converts this DateTime instance to a readable string, according to universal time. |
||
Represents the primitive value of this DateTime object. |
||
Overloaded. |
||
Overloaded. |
||
Overloaded. |
||
Overloaded. |
||
Overloaded. |
||
Overloaded. |
||
Overloaded. |
||
Returns a copy of the current DateTime object. |
||
Combines the date component of a DateTime object and the time component of another DateTime object into a new DateTime object. |
||
Compares the current DateTime instance with another DateTime object and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. |
||
Returns the number of days between two DateTime instances. |
||
Returns a value indicating whether two DateTime objects are equal. |
||
Creates a new DateTime object, by specifying its different date and time components. |
||
Creates a new DateTime object from a provided date string. |
||
Creates a new DateTime object from the number of milliseconds since Jan 1st 1970. |
||
For internal use only. |
||
Returns the day of the month of the specified DateTime. |
||
Returns the day of the week of the specified DateTime. |
||
Overloaded. |
||
Overloaded. |
||
Returns the beginning of the week of the specified DateTime. |
||
Returns the year component of the specified DateTime. |
||
Checks if this DateTime object is greater than the specified DateTime object. |
||
Checks if this DateTime object is greater than or equal to the specified DateTime object. |
||
Returns the number of hours between two DateTime instances. |
||
Returns a value indicating whether the year of the current DateTime instance is a leap year. |
||
Checks if this DateTime object is less than the specified DateTime object. |
||
Checks if this DateTime object is less than or equal to the specified DateTime object. |
||
Returns the latter of two DateTime objects. |
||
Returns the highest possible DateTime value. |
||
Returns the number of milliseconds between two DateTime instances. |
||
Returns the former of two DateTime objects. |
||
Returns the number of minutes between two DateTime instances. |
||
Returns the lowest possible DateTime value. |
||
Returns the number of months between two DateTime instances. |
||
Returns a DateTime object representing the current DateTime. |
||
Returns the number of seconds between two DateTime instances. |
||
Overloaded. |
||
Returns a DateTime object representing the current Date. |
||
Returns a string representation of the current DateTime object. |
||
Represents the primitive value of this DateTime object. |
||
Returns the number of weeks between two DateTime instances. |
||
Returns the number of years between two DateTime instances. |