DateOnly.DayNumber Property

Definition

Gets the number of days since January 1, 0001 in the Proleptic Gregorian calendar represented by this instance.

public int DayNumber { get; }

Property Value

The number of days since January 1, 0001 in the Proleptic Gregorian calendar represented by this instance.

Applies to

产品 版本
.NET 6, 7, 8, 9