Note: date is in (dd/mm/yyyy) format and this is what, I need to use and I have tried this
function dateCheck(from, to, currentdate) {
var fDate, lDate, cDate;
fDate = Date.parse(from);
lDate = Date.parse(to);
cDate = Date.parse(currentdate);
if ((cDate <= lDate && cDate >= fDate)) {
return true;
}
return false;
}
but in some cases, I don't get the expected output