I have a business requirement to fetch Components based on a Schema from broker database on the basis of two date fields in metadata: start_date
and end_date
.
I will have one date input and the query should only return Components where this specific date lies between the values in the start_date
and end_date
metadata fields.
I tried with MetaValueCriteria
and CustomDateRangeCriteria
but was not successful.
Do we need to pass a specific date format to query on date fields and how can I use MetaValueCriteria
with date fields?