Problem
I am trying to use a filter on dates in the API call and I get a status failed response; how can I resolve this?
"A binary operator with incompatible types was detected. Found operand types 'Edm.DateTime' and 'Edm.String' for operator kind 'LessThan'".
Resolution
This occurs when Edm.String is used; use the Edm type datetime instead.
Examples:
1. https://serverurl/api/servicedesk/tickets/timelogs?$filter=StartDate lt '2019-01-21T21:44:45.257'
2. $filter=OpenDate eq DateTime'2018-09-21T21:44:45.257