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.
Date and time attributes¶
The date and time attribute type allows you to represent date and time values as part of the product specification in the Product Information Management system.
You can use it to store, for example, manufacturing dates, expiration dates, or event dates, all with specified accuracy.
Usage¶
You can manage the date and time attribute type through the back office, data migrations, REST, or through the PHP API. It also supports searching by using DateTimeAttribute and DateTimeAttributeRange criterions.
When creating an attribute based on the date and time attribute type you can select the accuracy level to match your needs:
Accuracy | Example | Limitations |
---|---|---|
Year | 2025 | Number between 1000 and 9999 |
Trimester | Q3 2025 | |
Month | July 2025 | |
Day | 2025-07-06 | |
Minute | 2025-07-06 11:15 | |
Second | 2025-07-06 11:15:37 |