Web the moment ().dayofyear () method is used to get or set the day of the year of the moment object.
Moment day of year. Accepts numbers from 1 to. This can be a value between 1 and 366 denoting the first and last. If the input to set is greater than the range, it will show up the.
Gets or sets the day of the year.