Today Element

The Today element renders the current date in the format relative to the server's local time zone. On U.S. systems the format is MM/DD/YYYY (for example, 1/21/2001).

Syntax

<Today>
</Today>
Parent Elements
Expr, Value

Example

The following Switch statement returns "April Fools" if today's date is the first of April.

<Switch>
  <Expr><Today/><Expr>
  <Case Value="4/1/2001">April Fools</Case>
<Switch>

See Also

TodayISO