Class DateRange
A range of dates used for month calendar controls that support multi-selection.
public class DateRange
- Inheritance
-
DateRange
- Inherited Members
Constructors
DateRange(DateTime, DateTime)
Initializes a new instance of the DateRange class.
public DateRange(DateTime startDate, DateTime endDate)
Parameters
Properties
EndDate
The end date of the range.
public DateTime EndDate { get; set; }
Property Value
StartDate
The start date of the range.
public DateTime StartDate { get; set; }
Property Value
Methods
DateRangeAsSingleDate(DateTime)
Returns a DateRange instance initialized with an end date equal to the start date.
public static DateRange DateRangeAsSingleDate(DateTime date)
Parameters
dateDateTimeThe date that represents both the start and end date of the range.
Returns
ToString()
public override string ToString()