Check if a date is within a period of a two given dates,
should return true
or false
$ npm install is-date-within-range --save
Read cookie:
if(dateCheck("1999-01-01","2018-06-21","2019-06-06"))
console.log("Availed");
else
console.log("Not Availed");