Noda Time
Show / Hide Table of Contents

Class DateOnlyExtensions

Extension methods for DateOnly.
Since 3.1.x
Availability net6.0, net8.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 DateOnly to the equivalent LocalDate.
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.
In this article
Back to top Generated by DocFX