Log in
Model

Dob

Magento\Customer\Model\Validator\Dob

What it does

This validator ensures that a customer's date of birth is not set to a future date.

Developers use this class when validating customer data during registration or profile updates to prevent users from entering invalid birth dates that haven't occurred yet.

The validation respects the store's configured timezone to ensure accurate date comparisons.

Public Methods

  • isValid()