Skip to main content
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.
Elin Y.'s user avatar
  • 7,404

Only top scored, non community-wiki answers of a minimum length are eligible