Hello,
I am able to use the OData Filter query to filter records from backend, using a single Date value as shown below.
" ?$filter=OrderDate eq datetime'2014-03-11T14:49:52' ".
I now wish to filter the records using two Date values, i.e. using a Date Range.
Say, I want to filter the records from the backend, whose OrderDate is between 2014-03-02T00:00:00 and 2014-03-12T00:00:00.
I have tried using gt,ge, lt, le, for two different Date values as below ->
?$filter=OrderDate gt datetime'2014-03-02T00:00:00' and OrderDate lt datetime’2014-03-12T00:00:00’
I tried using other range s as well but it doesn't work.
During my Research, I also came across a post :-> Multiple filters with date(s) This link talks about some additional stuff to be done, which I could not understand as I don't know the service backend implementation.
If any of you got the solution to filter the data using Date Range in OData Filter Query or have an idea about the above link, kindly share it with me.
Looking forward for your valuable inputs.
Thanks & Regards,
Suraj Kumar