DateOnly.Deconstruct(Int32, Int32, Int32) Method

Definition

Deconstructs DateOnly by Year, Month, and Day.

public void Deconstruct (out int year, out int month, out int day);

Parameters

year
Int32

When this method returns, represents the Year value of this DateOnly instance.

month
Int32

When this method returns, represents the Month value of this DateOnly instance.

day
Int32

When this method returns, represents the Day value of this DateOnly instance.

Applies to

Product Versions
.NET 8, 9