Log in
Model

Date

Magento\Elasticsearch\Model\Adapter\FieldType\Date

What it does

This class formats date values into ISO 8601 format (e.g., 1995-12-31T23:59:59Z) for Elasticsearch indexing.

Developers use this when preparing date fields from Magento products, orders, or other entities to be stored in Elasticsearch, ensuring dates are in a standardized format that Elasticsearch can properly index and query.

Public Methods

  • formatDate()