0

Is there a way to replace the date / times in the query below with the current date/time plus or minus a number of minutes?

<Query>
  <Where>
    <And>
      <Geq>
        <FieldRef Name="SendDate" />
          <Value IncludeTimeValue="TRUE" Type="DateTime">2011-01-01T15:55:52Z</Value>
      </Geq>
      <Leq>
        <FieldRef Name="SendDate" />
        <Value IncludeTimeValue="TRUE" Type="DateTime">2011-12-31T15:56:29Z</Value>
      </Leq>
    </And>
  </Where>
</Query>

1 Answer 1

0

You won't be able to do with minutes. CAML support OffsetDays as below

<FieldRef Name="SendDate" />
<Value Type="DateTime">
    <Today OffsetDays="-30" />
</Value>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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