1.0.0 • Published 3 years ago

@jswork/next-day-of-year v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

next-day-of-year

Javascript calculate the day of the year (1 - 366).

version license size download

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.