dayInYear property

int get dayInYear

Returns the number of this DateTime in the year. The first day of the year is 1.

Implementation

int get dayInYear => difference(firstDayOfYear).inDays + 1;