DateRange(DateTime, DateTime, TimeSpan) Constructor

Creates a new instance of DateRange equal to the range between two DateTime values.

Definition

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.2.9017.0
C#
public DateRange(
	DateTime lowerValue,
	DateTime upperValue,
	TimeSpan timeZoneOffset
)

Parameters

lowerValue  DateTime
The DateTime value representing the beginning of the date range.
upperValue  DateTime
The DateTime value representing the end of the date range.
timeZoneOffset  TimeSpan
The offset to use to establish the time zone of the DateRange.

Exceptions

ArgumentExceptionlowerValue is greater than upperValue

See Also