I wrote this caml query to get the data. the query i wrote-
<View>
<Query>
<Where>
<And>
<Eq>
<FieldRef Name='AccNo' />
<Value Type='Text'>0258</Value>
</Eq>
<Eq>
<FieldRef Name='EmpInTime' />
<Value Type='DateTime' IncludeTimeValue='FALSE'>2017-02-23 00:00:00</Value>
</Eq>
</And>
</Where>
</Query>
</View>
this should return only one row. but it returns more. what is the problem with this query?
Update: Tried "2017-02-23 T00:00:00Z" too as the DateTime value.
2017-02-23 T00:00:00Z?SPUtility.CreateISO8601DateTimeFromSystemDateTime(DateTime.Now);.2017-02-23T12:00:00Zshould work fine. Make sure there are no spaces and if the column doesn't include time value, it is12:00:00by default, not00:00:00:)<eq>with DateTime values is not recommended, better use other comparissons like<leq>,<geq>, etc.