Condividi tramite


Now Element (Query)

Applies to: SharePoint Foundation 2010

Returns the current date and time.

<Now>
</Now>

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

See Also

Reference

Month Element (Regional Settings)

Today Element (Query)

TodayISO Element