DateTimeOffset.Deconstruct(DateOnly, TimeOnly, TimeSpan) Method

Definition

Deconstructs this DateTimeOffset instance by DateOnly, TimeOnly, and TimeSpan.

C#
public void Deconstruct(out DateOnly date, out TimeOnly time, out TimeSpan offset);

Parameters

date
DateOnly

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

time
TimeOnly

When this method returns, represents the TimeOnly value of this DateTimeOffset instance.

offset
TimeSpan

When this method returns, represents the Offset value of this DateTimeOffset instance.

Applies to

Product Versions
.NET 8, 9