Skip to main content

DateTimeRange Properties

A structure that specifies a time interval with the [start, end). mathematical formula.
Name Description
Duration Gets the duration of the DateTimeRange.
Empty static Gets an empty datetime range.
End Gets the end date and time of the datetime range.
IsEmpty Gets whether the current datetime range is empty.
IsValid Gets whether the current datetime range is valid.
Start Gets the start date and time of the datetime range.
Today static Gets the current calendar day.
See Also