ymd_date
128 sites
Security covered
This module provides a date field which allows dates prior to epoch (1970) and allows values of year only, year/month, or year/month/day. The date value is stored in the format YYYYMMDD which allows natural sorting. When no month or day selections are made, 00 is stored in their place.
A formatter is included which displays the date using the standard Drupal date/time formats of your choice.
The included field widget allows selection of the beginning year and the year selector displays a range from this beginning year to the current year.
A year-only token is also included to provide an example.