Sign up ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I take create on U2U a Calm Query with adding a dates + 1 Month, or minus one month. How will this Query will works?

<Query> <Where> <And> <Geq> <FieldRef Name='DataPoc' /> <Value Type='DateTime'>[2012-11-18 22:46:28+1Month(s)]</Value> </Geq> <Leq> <FieldRef Name='DataKon' /> <Value Type='DateTime'>[2012-11-18 22:47:15-1Month(s)]</Value> </Leq> </And> </Where> </Query>

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You'll want to use an offset in the CAML query, For example,

<Query><Where><Geq><FieldRef Name="Created"/><Value Type="DateTime"><Today OffsetDays="-30"/></Value></Geq></Where></Query>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.