Search This Blog

Tuesday, August 2, 2016

Operator 'eq' incompatible with operand types 'System.Nullable`1[[System.DateTime

Operator 'eq' incompatible with operand types 'System.Nullable`1[[System.DateTime, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]' and 'System.String' at position 25.

In the OData filter you have to pass "datetime" (pass data type)

var strFilter ="$filter=kti_DateCheck eq datetime'2016-08-02T19:05:37Z'"

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.