Datepicker - bug
Datepicker - bug
Datepicker breaks if you add methods to the date object.
Specifically, the following code breaks it
Date.prototype.getMonth = function() {
var month = (this.getUTCMonth()+ 1) + "";
if(month.length == 1) {
month = "0" + month;
}
return(month);
}
Date.prototype.getDate = function() {
var date = this.getUTCDate() + "";
if(date.length == 1) {
date = "0" + date;
}
return(date);
}