range_date_generator
v1.0.2
Published
Generate a range of date and filter by specified days
Downloads
2
Readme
Range Date Generator
Range Date Generator è una libreria che genera un lista di giorni filtrati per i giorni specificati Es.: dal 2021-02-20 al 2021-04-20 solo i Lunedì e Mercoledì
Installation
npm i range_by_date_generator
Usage
const RangeDate = require("range_by_date_generator");
console.log(RangeDate.listRange(['Lunedì', 'Mercoledì'], '2021-02-20', '2021-04-20'))
/*
#RESULT
[
[
"Febbraio",
[
"2021-02-22",
"2021-02-24"
]
],
[
"Marzo",
[
"2021-03-01",
"2021-03-03",
"2021-03-08",
"2021-03-10",
"2021-03-15",
"2021-03-17",
"2021-03-22",
"2021-03-24",
"2021-03-29",
"2021-03-31"
]
],
[
"Aprile",
[
"2021-04-05",
"2021-04-07",
"2021-04-12",
"2021-04-14",
"2021-04-19"
]
]
]
*/