Class DateOnlyExtensions
Extension methods for DateOnly.
Since 3.1.x
Availability net6.0, net8.0
Inherited Members
Namespace: NodaTime.Extensions
Assembly: NodaTime.dll
Syntax
public static class DateOnlyExtensions
Methods
ToLocalDate(DateOnly)
Since 3.1.x
Availability net6.0, net8.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. |