Skip to content

rife.render.DateTimeIso

Erik C. Thauvin edited this page Mar 28, 2023 · 4 revisions

Return the current date and time in ISO 8601 format.

Usage

<!--v render:rife.render.DateTimeIso/-->
{{v render:rife.render.DateTimeIso/}}

Sample

2023-03-17T22:59:05-07:00
2023-03-18T14:54:46+00:00

Properties

The time zone ID can be specified using the tz property.

For example, to render the current UTC date and time:

{{v render:rife.render.DateTimeIso}}
tz=UTC
{{/v}}

which would render something like:

2023-03-18T06:05:36Z