1.0.0 • Published 3 years ago
@jswork/next-day-of-year v1.0.0
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
license
Code released under the MIT license.
1.0.0
3 years ago