I am trying to retrieve all records before specific date as follow:
?$filter=CreatedDate lt '2020-06-04T14:27:12.38'
but i keep receiving this error
"message": "The query specified in the URI is not valid. A binary operator with incompatible types was detected. Found operand types 'Edm.DateTimeOffset' and 'Edm.String' for operator kind 'GreaterThan'.",
I tried to cast date
?$filter=CreatedDate lt cast('2020-06-04T14:27:12.38', Edm.DateTimeOffset))
but still the same .
also tried
?$filter=CreatedDate lt datetime'2020-06-04T14:27:12.38'
and received
The query specified in the URI is not valid. Unrecognized 'Edm.String' literal 'datetime'1995-09-01T00:00:00'' at '21' in 'CreatedDate gt datetime'1995-09-01T00:00:00''.
is there anyway to achieve that ?