DateRelative Class

Class for handling relative Dates such as 'Day 1 6 Months Ago', etc.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public class DateRelative
Inheritance
Object    DateRelative

Constructors

DateRelativeInitializes a new instance of the DateRelative class

Properties

Ago Get/Set a value indicating whether this Date occurs in the Past.
Date Get the specific Date and Time represented by the caller's Relative Value.
DateType Get/Set the Relative Date Type of this instance.
DayIndex Get/Set the relative Day Indexing component of this instance.
Expansion Get/Set the Expanded expression of this Relative Date.
HourIndex Get/Set the relative Hour Indexing component of this instance.
MinuteIndex Get/Set the relative Minute Indexing component of this instance.
MonthIndex Get/Set the relative Month Indexing component of this instance.
Offset Get the Time Span Offset represented by this instance.
TimeActive Get/Set a value indicating whether the current Time is used on calculations.
WeekIndex Get/Set the relative Week Indexing component of this instance.
YearIndex Get/Set the relative Year Indexing component of this instance.

Methods

Equals
(Inherited from Object)
Expand Expand this Relative Date to contain more information.
Finalize
(Inherited from Object)
FromXml Return a Relative Date Value from an Xml Definition.
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString Return the string representation of this instance.
(Overrides ObjectToString)
ToXml Return an Xml representation of the values in the provided Relative Date.

Operators

(DateRelative to DateTime) Cast the DateRelative to a DateTime value.

See Also