TodayISO 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 and time in International Organization for Standardization (ISO) format: YYYY-MM-DDTHH:MM:SSZ (for example, 2001-01-21T22:54:47Z).

<TodayISO>
</TodayISO>

Attributes

Attribute

Description

None

N/A

Child Elements

None

Parent Elements

Numerous

Occurrences

Minimum: 0

Maximum: Unbounded

Remarks

Note that the date and time returned are relative to the server’s local time zone.

Example

The following example evaluates the default value for a DateTime field type and inserts the current date in ISO format if the value is "[today]". Otherwise, the code inserts the raw value contained in the field.

<Switch>
   <Expr>
      <Property Select="Default" />
   </Expr>
   <Case Value="[today]">
      <HTML>"</HTML>
      <TodayISO />
      <HTML>"</HTML>
   </Case>
   <Default>
      <ScriptQuote>
         <Column HTMLEncode="TRUE" />
      </ScriptQuote>
   </Default>
</Switch>

See Also

Reference

Month

Now

Today