Last updated May 15, 2010. Created on May 15, 2010.
Edited by JoeMcGuire. Log in to edit this page.

To create a date of birth field in Drupal 6.

  1. Navigate to add a new field for your content type
    Administer > Content management > Content types > manage fields
  2. For the field type select datetime
  3. 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.

Looking for support? Visit the forums, or join #drupal-support in IRC.


Timbalord’s picture

But this solution didnt work for dates before 1.1.1970.
I am using PHP Version 5.1 and PHP4 Module is enabled.

JoeMcGuire’s picture

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.