Re: Dates
How can I set up the JQuery DatePicker control to show years before 2001? Also, how can I set up to enter "vague dates" - e.g. just the year?
Cheers
Alan
Aberystwyth
The technical forum of the NBN Trust for use by the Network. It includes discussions and announcements on the NBN Atlas, Recorder 6 and Indicia |
You are not logged in. Please login or register.
Forum → Indicia Development → Dates
How can I set up the JQuery DatePicker control to show years before 2001? Also, how can I set up to enter "vague dates" - e.g. just the year?
Cheers
Alan
Hi Alan
You can simply overtype the year if it is just an occasional old record. The JavaScript data picker control does support a yearRange configuration option (see http://docs.jquery.com/UI/Datepicker#option-yearRange) but we don't expose this via the data entry helper at the moment. This could of course be done though.
For vague dates, you'd need to use a simple text input rather than the date picker, or possibly use the date picker but disable client side validation otherwise jQuery will throw out any invalid dates. A better solution in the long term would be a custom date validation routine for jQuery which handles vague dates though I don't imagine that would be simple.
Regards
Forum → Indicia Development → Dates
Powered by PunBB 1.4.6, supported by Informer Technologies, Inc.