FIlter by date (Invalid filter expression) #949
Unanswered
raulandresduque
asked this question in
Q&A
Replies: 1 comment
-
Have you tried to create a variable and then use that? DateTime now = DateTime.Now; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm experiencing problems when trying to filter by datetime.
e.g. (ODATA v3)
/odata/Contratos?$filter=FechaFinContrato ge datetime'2025-06-02T21:47:22.855097-05:00'&$format=json
This query works fine from POSTMAN but when executed thru Simple.OData.Client, I'm getting error:
Invalid filter expression
Nothing special in the code:
.For()
.Filter(c => c.fecha_fin_contrato >= DateTime.Now)
.FindEntriesAsync()
Any idea?
Beta Was this translation helpful? Give feedback.
All reactions