Convert js date string to day of year & vice versa 🎉
$ npm install date2doy
const doy = require('date2doy');
doy.dateToDoy('2019-02-01');
//=> {doy: 32, year: 2019}
doy.doyToDate(2019, 32);
//=> '2019-02-01'
Type: string
Should be along the format of: yyyy-mm-dd
Type: number
Type: number
MIT © Made with ❤️ & ☕️ Hamza Baig