Table of Contents

Class DateRange

Namespace
HP.LFT.SDK
Assembly
HP.LFT.SDK.dll

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

startDate DateTime

The start date of the range.

endDate DateTime

The end date of the range.

Properties

EndDate

The end date of the range.

public DateTime EndDate { get; set; }

Property Value

DateTime

StartDate

The start date of the range.

public DateTime StartDate { get; set; }

Property Value

DateTime

Methods

DateRangeAsSingleDate(DateTime)

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

public static DateRange DateRangeAsSingleDate(DateTime date)

Parameters

date DateTime

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

Returns

DateRange

ToString()

public override string ToString()

Returns

string