moment().dayOfYear(Number); moment().dayOfYear(); // Number


Gets or sets the day of the year.

Accepts numbers from 1 to 366. If the range is exceeded, it will bubble up to the years.