This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
DateTimeAttribute criterion¶
The DateTimeAttribute Search Criterion
searches for products by value of a specified attribute, based on the date and time attribute type.
Arguments¶
identifier
- attribute's identifier (string)value
- searched value (DateTimeImmutable)
Operators¶
The following operators are supported:
- FieldValueCriterion::COMPARISON_EQ
- FieldValueCriterion::COMPARISON_NEQ
- FieldValueCriterion::COMPARISON_LT
- FieldValueCriterion::COMPARISON_LTE
- FieldValueCriterion::COMPARISON_GT
- FieldValueCriterion::COMPARISON_GTE
Example¶
PHP¶
The following example lists all products for which the event_date
attribute has value equal to 2025-07-06.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|