datetime class : DayOfYear getter
Description
Gets the elapsed days since the beginning of the year.
Syntax
datetimeInstance.DayOfYear
Arguments
None
Return value
Class | Description |
int | The elapsed days since the beginning of the year. |
Sample code
1: | datetime dt = new datetime(2019, 3, 3, 0, 0, 0); |
2: | int dayofyear = dt.DayOfYear; // 62 |
Notes
It's a wrapper of the System.DateTime.DayOfYear property.
This getter was added in the Ver 1.0.0.1.