Today element (Query)

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

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  OffsetDays = "Integer">

Elements and attributes

The following sections describe attributes, child elements, and parent elements.


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

Child elements


Parent elements


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

See also