MindFusion.Scheduling for ASP.NET Programmer's Guide
DateTime Members
Constructors Methods
 


A JavaScript Date object wrapper that extends the functionality of the JavaScript Date object. It has all the capabilities of the Date class, plus it adds several helper methods to manipulate its date and time components.
All date and time objects in the calendar are represented by this class.

The following tables list the members exposed by the DateTime type.

 Public Constructors

  Name Description

DateTime

Initializes a new instance of the DateTime class.

 Public Methods

  Name Description

__getDate

Gets the day component of this DateTime instance.

__getDay

Gets the day of the week component of this DateTime instance.

__getFullYear

Gets the year component of this DateTime instance.

__getHours

Gets the hours component of this DateTime instance.

__getMilliseconds

Gets the milliseconds component of this DateTime instance.

__getMinutes

Gets the minutes component of this DateTime instance.

__getMonth

Gets the month component of this DateTime instance.

__getSeconds

Gets the seconds component of this DateTime instance.

__getTime

Gets the number of milliseconds between Jan 1 1970 00:00:00 and this DateTime instance.

__getTimezoneOffset

Gets the difference between GMT and local time in minutes.

__getUTCDate

Gets the day component of this DateTime instance, according to universal time.

__getUTCDay

Gets the day of the week component of this DateTime instance, according to universal time.

__getUTCFullYear

Gets the year component of this DateTime instance, according to universal time.

__getUTCHours

Gets the hours component of this DateTime instance, according to universal time.

__getUTCMilliseconds

Gets the milliseconds component of this DateTime instance, according to universal time.

__getUTCMinutes

Gets the minutes component of this DateTime instance, according to universal time.

__getUTCMonth

Gets the month component of this DateTime instance, according to universal time.

__getUTCSeconds

Gets the seconds component of this DateTime instance, according to universal time.

__setDate

Sets the day component of this DateTime instance.

__setFullYear

Sets the year component of this DateTime instance.

__setHours

Sets the hours component of this DateTime instance.

__setMilliseconds

Sets the milliseconds component of this DateTime instance.

__setMinutes

Sets the minutes component of this DateTime instance.

__setSeconds

Sets the seconds component of this DateTime instance.

__setTime

Sets a date and time by adding or subtracting a specified number of milliseconds to/from midnight 1 Jan 1970.

__setUTCDate

Sets the day component of this DateTime instance, according to universal time.

__setUTCFullYear

Sets the year component of this DateTime instance, according to universal time.

__setUTCHours

Sets the hours component of this DateTime instance, according to universal time.

__setUTCMilliseconds

Sets the milliseconds component of this DateTime instance, according to universal time.

__setUTCMinutes

Sets the minutes component of this DateTime instance, according to universal time.

__setUTCSeconds

Sets the seconds component of this DateTime instance, according to universal time.

__toDateString

Converts the date component of this DateTime instance to a readable string.

__toLocaleDateString

Converts the date component of this DateTime instance to a readable string, using locale conventions.

__toLocaleString

Converts this DateTime instance to a readable string, using locale conventions.

__toLocaleTimeString

Converts the time component of this DateTime instance to a readable string, using locale conventions.

__toString

Converts this DateTime instance to a readable string.

__toTimeString

Converts the time component of this DateTime instance to a readable string.

__toUTCString

Converts this DateTime instance to a readable string, according to universal time.

addDays

Adds the specified number of days to the current DateTime object.

addHours

Adds the specified number of hours to the current DateTime object.

addMilliseconds

Adds the specified number of milliseconds to the current DateTime object.

addMinutes

Adds the specified number of minutes to the current DateTime object.

addMonths

Adds the specified number of months to the current DateTime object.

addSeconds

Adds the specified number of seconds to the current DateTime object.

clone

Returns a copy of the current DateTime object.

combine

Combines the date component of a DateTime object and the time component of another DateTime object into a new DateTime object.

compareTo

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.

equals

Checks if the values of two DateTime objects are equal.

fromDateParts

Creates a new DateTime object, by specifying its different date and time components.

fromDateString

Creates a new DateTime object from a provided date string.

fromMilliseconds

Creates a new DateTime object from the number of milliseconds since Jan 1st 1970.

getDate

Returns the JavaScript Date object, corresponding to the current DateTime object.

maxDate

Returns the latter of two DateTime objects.

maxValue

Returns the highest possible DateTime value.

minDate

Returns the former of two DateTime objects.

minValue

Returns the lowest possible DateTime value.

now

Returns a DateTime object representing the current DateTime.

today

Returns a DateTime object representing the current Date.

toString

Returns a string representation of the current DateTime object.

 See Also

DateTime Class
MindFusion.Common Namespace