Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
To create a date of birth field in Drupal 6.
-
Navigate to add a new field for your content type
Administer > Content management > Content types > manage fields - For the field type select datetime
- On the following field settings form. Check that the field Granularity includes as much detail as you'd like to collect.
Users will now be able to a date birth when creating or editing this node type.
Comments
But this solution didnt work
But this solution didnt work for dates before 1.1.1970.
I am using PHP Version 5.1 and PHP4 Module is enabled.
When creating your date field
When creating your date field be sure to select datetime for the data type and datestamp.
Datestamp is a timestamp was a count of seconds since 1970 - which is very useful for recording modern events but not past dates because of the 1970 limit.