Export (0) Print
Expand All
4 out of 7 rated this helpful - Rate this topic

Today Element (Query)

Renders the current date in the format that is relative to the server's local time zone. For servers in the United States, the format is MM/DD/YYYY (for example, 1/21/2001).


<Today  Offset = "Integer">
</Today>

Attribute

Description

Offset

Optional Integer. Adds or subtracts the number of days that are specified by the positive or negative integer value.

Minimum: 0

Maximum: Unbounded

The following example queries for cases where the due date is today.

<Query>
   <Where>
      <Eq>
         <FieldRef Name="DueDate" />
         <Value Type="DateTime">
            <Today />
         </Value>
      </Eq>
   </Where>
   <OrderBy>
      <FieldRef Name="ID" />
   </OrderBy>
</Query>

Reference

Other resources

Now
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.