Log in
Model

Date

Magento\Customer\Model\Metadata\Form\Date

What it does

This class handles validation, extraction, and formatting of date values for customer form fields in Magento 2.

Developers use this class when working with customer attributes of type 'date', as it manages date input validation (including range checks), format conversion, and output rendering across different display contexts (text, HTML, PDF).

Public Methods

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