DateTimeRange Constructors

The date-time range.
Name Parameters Description
DateTimeRange(DateTime, DateTime) start, end Initializes a new DateTimeRange instance with the specified start and end dates.
DateTimeRange(DateTime, TimeSpan) start, duration Initializes a new DateTimeRange instance with the specified start date and duration.
See Also