<Query>
<Where>
<And>
<Geq>
<FieldRef Name="Date" IncludeTimeValue="FALSE"/>
<Value Type="DateTime" IncludeTimeValue="FALSE">
<Today IncludeTimeValue="FALSE" OffsetDays="-180"/>
</Value>
</Geq>
<Leq>
<FieldRef Name="Date" IncludeTimeValue="FALSE"/>
<Value Type="DateTime" IncludeTimeValue="FALSE">
<Today IncludeTimeValue="FALSE"/>
</Value>
</Leq>
</And>
</Where>
<OrderBy>
<FieldRef Name="Date" Ascending="FALSE"/>
</OrderBy>
</Query>
I'm using the above CAML Query to get the last 6 months' items which I think, it's not correct because there are different total days each month.
So, how can I get the real items from the last 6 months?
Thanks in advance for any help.