DateSpan Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A date range. For example, between '2022-12-23' and '2023-01-05'.
public class DateSpan
type DateSpan = class
Public Class DateSpan
- Inheritance
-
DateSpan
Constructors
| Name | Description |
|---|---|
| DateSpan() |
Initializes a new instance of the DateSpan class. |
| DateSpan(DateTime, DateTime) |
Initializes a new instance of the DateSpan class. |
Properties
| Name | Description |
|---|---|
| End |
Gets or sets the end date of the date span. |
| Start |
Gets or sets the start date of the date span. |
Methods
| Name | Description |
|---|---|
| Validate() |
Validate the object. |