Class DateOnlyExtensions
Extension methods for System.DateOnly.
Since 3.1.x
Availability net6.0
Inheritance
Object
DateOnlyExtensions
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: NodaTime.Extensions
Assembly: NodaTime.dll
Syntax
public static class DateOnlyExtensions
Methods
ToLocalDate(DateOnly)
Converts a System.DateOnly to the equivalent LocalDate.
Since 3.1.x
Availability net6.0
Declaration
public static LocalDate ToLocalDate(this DateOnly date)
Parameters
Type | Name | Description |
---|---|---|
DateOnly | date | The date to convert. |
Returns
Type | Description |
---|---|
LocalDate | The LocalDate equivalent, which is always in the ISO calendar system. |