Share via


Today Element

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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>
</Today>

Attributes

Attribute

Description

None

N/A

Child Elements

None

Parent Elements

Numerous

Occurrences

Minimum: 0

Maximum: Unbounded

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>

See Also

Reference

Month

Now

TodayISO