Community Documentation

Date of Birth field DOB

Last updated May 15, 2010. Created by JoeMcGuire on May 15, 2010.
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.

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.

About this page

Drupal version
Drupal 5.x, Drupal 6.x
Audience
Site administrators

Site Building Guide

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.