What's the object type returned by Datepicker? Supposing I have the following:
$("#txtbox").datepicker({
onClose: function(date){
//something
}
});
What is date
? I'm interested in reading the date object from another Datepicker for comparison, something like:
function(date){
oDate = $("#oDP").datepicker("getDate");
if(oDate == date)
//do one
else if(oDate > date)
//do two
}
However, this kind of comparison is not working. I'm guessing there is some sort of comparison method for Date object, but I don't know. I also tried comparing the String representation of the dates like oDate.toString() > date.toString()
to no avail.