Table of Contents

Class DateRange

A range of dates used for month calendar controls that support multi-selection.

Inheritance
DateRange
Namespace: HP.LFT.SDK
Assembly: HP.LFT.SDK.dll
Syntax
public class DateRange

Constructors

DateRange(DateTime, DateTime)

Initializes a new instance of the DateRange class.

Declaration
public DateRange(DateTime startDate, DateTime endDate)
Parameters
Type Name Description
DateTime startDate

The start date of the range.

DateTime endDate

The end date of the range.

Properties

EndDate

The end date of the range.

Declaration
public DateTime EndDate { get; set; }
Property Value
Type Description
DateTime

StartDate

The start date of the range.

Declaration
public DateTime StartDate { get; set; }
Property Value
Type Description
DateTime

Methods

DateRangeAsSingleDate(DateTime)

Returns a DateRange instance initialized with an end date equal to the start date.

Declaration
public static DateRange DateRangeAsSingleDate(DateTime date)
Parameters
Type Name Description
DateTime date

The date that represents both the start and end date of the range.

Returns
Type Description
DateRange

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()