Right now my function is
if(dateCheck("02.05.2013","17.09.2013","02.07.2013"))
alert("Availed");
else
alert("Not Availed");
function dateCheck(from,to,check) {
var fDate,lDate,cDate;
fDate = Date.parse(from);
lDate = Date.parse(to);
cDate = Date.parse(check);
if((cDate <= lDate && cDate >= fDate)) {
return true;
}
return false;
}
Always returning false, Getting dates in this format from the server side 02.09.2013 Please suggest right format for parsing these values?