@jswork/next-day-of-year
v1.0.0
Published
Javascript calculate the day of the year (1 - 366).
Downloads
7
Readme
next-day-of-year
Javascript calculate the day of the year (1 - 366).
installation
npm install -S @jswork/next-day-of-year
usage
import '@jswork/next-day-of-year';
const day1 = new Date('2020-01-01');
const day2 = new Date('2020-02-01');
nx.dayOfYear(day1); // 1
nx.dayOfYear(day2); // 32
resources
- https://stackoverflow.com/questions/8619879/javascript-calculate-the-day-of-the-year-1-366
license
Code released under the MIT license.