[This is preliminary documentation and is subject to change.]

The Date type exposes the following members.

Constructors

  NameDescription
DateOverloaded.

Methods

  NameDescription
AddDays
Add the specified days to the Date
AddMonths
Add the specified months to the Date
AddYears
Add the specified years to the Date
Cast
Casts the object specified in the o parameter to a Date. If the cast fails an InvalidCastException is thrown
CompareTo (Overrides DataTypeBase..::.CompareTo(Object).)
Equals (Overrides Object..::.Equals(Object).)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
FromDateTime
Converts a DateTime to a Date.
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Parse
Parses text and returns the parsed value as Date
ToDateTime
Converts a Date to DateTime
ToStringOverloaded.
Returns a String that represents the current Date. The result string is formatted using the format provided in the format parameter.
Returns a String that represents the value specified in date. The result string is formatted using the format provided in the format parameter.
TryCast
Tries to cast the object specified in the o parameter to a Boolean.

Operators

Properties

  NameDescription
BeginningOfMonth
Returns a Date representing the first day of the month of the Date
BeginningOfYear
Returns a Date representing the first day of the year of the Date
Day
Gets the day of the month represented by this instance.
DayOfWeek
DefaultFormat
Empty
Represents an empty Date
EndOfMonth
Returns a Date representing the last day of the month of the Date
EndOfYear
Returns a Date representing the last day of the year of the Date
Month
Gets the month component of the date represented by this instance.
Now
Return the current date
Year
Gets the year component of the date represented by this instance.

See Also