Struct DateOnly
Represents a calendar date within the range 0001-01-01 to 9999-12-31, with no time component.
Namespace: Esri.ArcGISRuntime
Assembly: Esri.ArcGISRuntime.dll
Syntax
public readonly struct DateOnly : IComparable, IComparable<DateOnly>, IEquatable<DateOnly>
Remarks
This type is a compatibility shim for System.DateOnly
for projects targeting .NET Framework and UWP.
For projects targeting .NET 8.0 or newer, use the system type instead.
Constructors
Name | Description |
---|---|
Date |
Initializes a new instance of the Date |
Properties
Name | Description |
---|---|
Day | Gets the day component of the date. |
Max |
Gets the largest possible value of Date |
Min |
Gets the smallest possible value of Date |
Month | Gets the month component of the date. |
Year | Gets the year component of the date. |
Methods
Name | Description |
---|---|
Compare |
|
Compare |
|
Equals(Date |
|
Equals(Object) | |
From |
Converts System. |
Get |
|
Parse(String) | Creates a new Date |
To |
Converts this |
To |
Operators
Name | Description |
---|---|
Equality(Date |
Checks if two DateOnly instances are equal. |
Greater |
Checks if left DateOnly instance is greater than the right one. |
Greater |
Checks if left DateOnly instance is greater than or equal to the right one. |
Inequality(Date |
Checks if two DateOnly instances are not equal. |
Less |
Checks if left DateOnly instance is less than the right one. |
Less |
Checks if left DateOnly instance is less than or equal to the right one. |
Applies to
Target | Versions |
---|---|
.NET Framework | 200.4 - 200.6 |
UWP | 200.4 - 200.6 |