Export (0) Print
Expand All

Now Element (Query)

Last modified: May 30, 2008

Applies to: SharePoint Foundation 2010

In this article
Attributes
Child Elements
Parent Elements
Occurrences

Returns the current date and time.


<Now>
</Now>

Attribute

Description

None

N/A

Minimum: 0

Maximum: Unbounded

The following example queries for cases where a recurring event overlaps with the current date and time.

<Query>
   <Where>
      <DateRangesOverlap>
         <FieldRef Name="EventDate" />
         <FieldRef Name="EndDate" />
         <FieldRef Name="RecurrenceID" />
         <Value Type="DateTime">
            <Now />
         </Value>
      </DateRangesOverlap>
   </Where>
</Query>
Show:
© 2014 Microsoft