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 during customer data validation, particularly when creating or updating customer accounts, to prevent invalid birth dates from being saved.

It respects the store's configured timezone when performing the validation.

Public Methods

  • isValid()