2
votes
Accepted
How can I change the selectable years in a date field?
Datelist widget accepts relative values using + or -. You can set 1950:-18 as #date_year_range. Which will create options from 1950 to 18 years before the current year.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
datetime × 12217 × 401
views × 400
8 × 172
entities × 153
theming × 77
nodes × 70
forms × 70
javascript × 41
rules × 39
i18n-l10n × 30
6 × 27
webforms × 27
database × 25
users × 23
tokens × 15
feeds × 14
migrations × 14
commerce × 11
blocks × 10
ajax × 10
emails × 10
importing-exporting × 10
hooks × 9
9 × 9