Today Element (Query)

Last modified: March 09, 2015

Applies to: SharePoint Foundation 2010

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">




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.

         <FieldRef Name="DueDate" />
         <Value Type="DateTime">
            <Today />
      <FieldRef Name="ID" />