I am having the following codes and it though i\'m having 01-Jan-2009 for DateTo and 03-Jan-2009 for DateFrom it\'s readi
My Comparison with the current date
function isPastDate(dateText) {
// date is dd/mm/yyyy
var inputDate = dateText.split("/");
var today = new Date();
inputDate = new Date(inputDate[2], inputDate[1] - 1, inputDate[0], 0, 0, 0, 0);
today = new Date(today.getFullYear(), today.getMonth(), today.getDate(), 0, 0, 0, 0);
return inputDate < today;
};