Log in
Model

Date

Magento\Customer\Model\Metadata\Form\Date

What it does

This class handles date attribute data for customer forms in Magento 2.

It manages extracting date values from requests, validating them against requirements and date ranges, and formatting date output for display.

Developers use this when working with customer date attributes like date of birth or custom date fields.

Public Methods

  • extractValue()
  • validateValue()
  • compactValue()
  • restoreValue()
  • outputValue()