Syndicate content

year

How to change the date year range on a Form API 'date' element

By default, the range of a date element goes from the year 1900 to 2050. In some cases, we don't want users to enter a year value in the future, so we're going to have to limit the range. Click 'read more' to find out how to change the year range.

Submitted by Sven on Sat, 29/11/2008 - 13:07 5 comments

  • Search

  • On the web

      • Sven Decabooter on Twitter
      • Sven Decabooter on LinkedIn
      • Sven Decabooter on Facebook
      • Sven Decabooter on Delicious
      • Sven Decabooter on LastFM
      • Sven Decabooter on FriendFeed
  • Drupal

    • Individual member of Drupal Association

      View Sven Decabooter's profile on drupal.org