Share via


Today Element

The Today element renders the current date in the format relative to the server's local time zone. On U.S. systems, the format is MM/DD/YYYY (for example, 1/21/2001).

Syntax

<Today>
</Today>

Example

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>