I'm looking for a valid date pattern, to validate a user's birthday (component date).

I want to make sure the person is 18 years of age or older. However, Drupal requires the GNU Date Input Format.

Screenshot of a webform backend (Drupal 6)

This seems not to work - Drupal shows no error message at all ?

Webform input - 24.09.2014

There is also a related answer Field Validation: 18 Years or Older, but this seems to be super complicated and does not affect the module.

  • 1
    Why not to use 18 years ago? Using date arithmetic might well be unsuppoted, as it's not really a date format, it's date calculation.
    – Mołot
    Sep 24, 2013 at 9:31

1 Answer 1


Here's the solution for this annoying "feature":

Drupal validate 18 years old webform

  • Please keep your language civil and avoid emotional attitude. Now you are pretty close to "inappropriate for respectful discourse" flag reason.
    – Mołot
    Sep 24, 2013 at 11:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.