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.
DateMetadata Criterion¶
The DateMetadata Search Criterion
searches for content based on the date when it was created or last modified.
Arguments¶
target- indicated if creation or modification date should be queried, eitherDateMetadata::CREATEDorDateMetadata::MODIFIEDoperator- Operator constant (IN, EQ, GT, GTE, LT, LTE, BETWEEN)value- indicating the date(s) that should be matched, provided as a UNIX timestamp (or array of timestamps)
Example¶
1 2 3 4 5 | |
Use case¶
You can use the DateMetadata Criterion to search for blog posts that have been created within the last week:
1 2 3 4 5 6 7 | |