Click here to Skip to main content
15,886,963 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a query like this

select * from xxx where dates between '2012-10-26' and '2012-10-27'.
and did as URL like

url/?$filter=dates gt datetime'2012-10-26' and dates lt datetime'2012-10-27'
and I am getting response by using this one.

Now, I need to get by time, so I changed the URL to

&$filter=LastModifiedDate+ge+datetime'2012-09-25 23:59:59'
But I am getting an error:

{"odata.error":{"code":"","message":{"lang":"en-US","value":"Unrecognized 'Edm.DateTime' literal 'datetime'2012-09-25 12:00:00'' at '20' in 'LastModifiedDate ge datetime'2012-09-25 12:00:00''."}}}
Posted
Updated 23-Apr-14 21:13pm
v2

1 solution

this is the solution

VB
dateTimeOffsetValue = year "-" month "-" day "T" hour ":" minute [ ":" second [ "." fractionalSeconds ] ] ( "Z" / sign hour ":" minute )
Example: 2000-01-01T16:00:00.000Z
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900