jQuery - datepicker.parseDate on 'mm/y' causing Invalid Date
问题 I have a validate method which seems pretty simple because I use something very similar when using the format mm/dd/yy , but when I use mm/y ...I keep getting an invalid date. Here is my validation: function validateDate(dateField) { try{ $.datepicker.parseDate('mm/y', dateField, null); } catch(error){ alert(error); } } If I pass in a date like 05/11 ...this logic complains that the date is invalid. If I change the format to mm/dd/yy and enter 05/11/2011 ...then it says it is valid. Am I