I am trying to get the data based on some datetime string using CAML query.
Here is my CAML query:
<View>
<Query>
<Where>
<And>
<Le>
<FieldRef Name='StartDateTime'/>
<Value Type='DateTime' IncludeTimeValue='TRUE'>2017-03-23T05:20:00.000Z</Value>
</Le>
<Ge>
<FieldRef Name='EndDateTime'/>
<Value Type='DateTime' IncludeTimeValue='TRUE'>2017-03-23T05:20:00.000Z</Value>
</Ge>
</And>
</Where>
</Query>
</View>
When I am passing the value of date-time in ISO string it gives me error "500 (Internal Server Error)"
If I pass date without converting to ISO string it gives no result.
I am using SharePoint Online, my current timezone in regional setting is set to India.