Day of Year
The JavaScript Date object has built in methods to obtain the day of the week and the day of the month so why doesn’t it have one for the day of the year? Well it doesn’t really matter because it is trivially easy to add the method ourselves.
Tags: date, day of year, javascript







