datetime class : DayOfYear getter

Description

Gets the elapsed days since the beginning of the year.

Syntax

datetimeInstance.DayOfYear

Arguments

None

Return value

ClassDescription
intThe 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.

Links for reference

Copyright © Cooker All rights reserved.