Date and time filter in expressio rule

Certified Associate Developer

Hi All, 

I have a column  name created date in db as datetime . When I am creating filter in expression rule as createddatefrom and createddateto . I am not able to filter it . 

Expression Rule:

a!queryFilter(
field: "createddate",
operator: "between",
value: {
todate(ri!createddatefrom),
todate(ri!createddatefrom)+ day()
},
applywhen: not(rule!APN_isEmpty(ri!createddatefrom))
),
a!queryFilter(
field: "createddate",
operator: "between",
value: {
todate(ri!createddateto),
todate(ri!createddateto) + day()
},
applywhen: not(rule!APN_isEmpty(ri!createddateto))
),

Please help and thanks in Advance

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Associate Developer
    in reply to Stefan Helzle

    It worked but while choosing createddateto if am choosing one day extra then its showing me data else its not showing .. 

    Example:

    I have a data in grid where created date is 21/09/2021 and 22/09/2021

    if am choosing createddatefrom as 01/09/2021 and createddateto as 22/09/2021 . then its showing data till 21/09/2021 .. 

    and 

    if am choosing createddatefrom as 01/09/2021 and createddateto as 21/09/2021 . then its showing no data to display

Children
No Data