Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

daterange predicate to support all date formats

Avatar

Level 2

I have requirement where i need to use querybuilder daterange redicate to search data based on data properties. Issue that i am facing is metadata of content have inconsistent date format so i can not use one specific date format in date range property.

E.g. when i use daterange.lowerBound=2019-12-28T00:00:00.000-05:00 then it does not fetch content which have date as 2019-12-28T00:07:19.558Z and vice cersa.

 

Is there a way so that i can fetch all records irrespective of date format?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

Not OOTB, but you can write your custom predicate to achieve this.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi,

Not OOTB, but you can write your custom predicate to achieve this.