Using the REST services, I'm trying to filter by the Created column, which is a Date data type. When trying to $filter on that column, I passed in the same date format that comes back in the JSON result: "/Date(1348748902000)/", so my URL looks like this:
http://hostname/_vti_bin/listdata.svc/MyList?$filter=Created%20gt%20'/Date(1348748902000)/'
Unfortunately, while this works for simple string fields, I get an error back when I try this for date fields:
Operator 'gt' incompatible with operand types
System.Nullable`1[[System.DateTime, mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089]]' and 'System.String' at position 8.
I can't find anything in MSDN or elsewhere. Anyone have any ideas?