Automatic Date Completion 介绍
For use in an <input type="text" /> field. It lets the user only type in 10
and the input will be transformed into 2007-12-10.
Only typing a number will get the month and year. It presumes it’s in the
future, so if you type 10 on the eleventh of November, it will return December
(2007-12-10 that is).
Works great with the jQuery UI
Datepicker
One way of use
`$(“input”).blur(function () {
var value = $(this).val();
$(this).dateCompletion(value);
}
});`