Log in
Model

Startdate

Magento\Catalog\Model\Attribute\Backend\Startdate

What it does

This class manages the special price start date attribute for products in Magento 2.

It handles validation and formatting of the start date before saving, ensuring that the start date doesn't exceed the end date (if configured).

Developers interact with this class when working with product special pricing periods or customizing date-based promotional attributes.

Public Methods

  • beforeSave()
  • validate()