Closed GoogleCodeExporter closed 8 years ago
I am thinking like a default onClose method, like:
onClose: function (dateText, inst) {
var thisObj = jQuery(this);
var minYear = thisObj.hasClass('2kDate') ? 2000 : 1900;
try {
var newDate = jQuery.datepicker.parseDate( 'mm/dd/yy', dateText );
while (newDate.getFullYear()<minYear)
newDate.setFullYear(newDate.getFullYear()+100);
newDate = jQuery.datepicker.formatDate( 'mm/dd/yy', newDate );
thisObj.val(newDate);
}
catch (e) { thisObj.val(""); }
}});
Original comment by rpierce%...@gtempaccount.com
on 28 Apr 2011 at 8:24
http://code.google.com/p/jquery-datepicker/wiki/NotTheUIDatePicker
Original comment by kelvin.l...@gmail.com
on 2 May 2011 at 9:37
Original issue reported on code.google.com by
rpierce%...@gtempaccount.com
on 28 Apr 2011 at 6:34