Date Comparison

I am trying to compare date in expression rule but i am getting very strange error in that.

Kindly help me out in this.

ri!date - "2/24/2018" type Date

 

error : Expression evaluation error at function a!queryEntity [line 11]: Cannot apply operator [EQUALS] to field [date] when comparing to value [TypedValue[it=107,v={2018-02-24}]].

load(
local!pagingInfo: a!pagingInfo(
startIndex: 1,
batchSize: -1,
sort: a!sortInfo(
field: "a",
ascending: true
)
),
with(
a!queryEntity(
entity: cons!TEST,
query:
a!query(
filter: a!queryFilter(
field: "date",
operator: "=",
value:=todate(ri!date)
),
pagingInfo: local!pagingInfo
)

).data
)
)

 

  Discussion posts and replies are publicly visible