This topic has not yet been rated - Rate this topic

Now Element

Windows SharePoint Services 3

Returns the current date and time.


<Now>
</Now>
Attribute Description

None

N/A

Numerous

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>
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.