Skip to main content

Parse date and time

Anatomy

<date:parse var="var" timezone="(system time zone)">
string
</date:parse>

Description: DATE:PARSE returns the timestamp for a date by parsing a textual date and time value.

Timestamps are based on Unix time, defined as the number of seconds elapsed since midnight proleptic Coordinated Universal Time (UTC) of January 1, 1970, not counting leap seconds.

Attributes

NameTypeDescriptionDefined By
varvarResult variable name date:parse
timezonestringTime zone date:parse

Results:

BindingTypePredicate
varN/A

Examples

Example

<output>
<date:parse>2000-01-01</date:parse>
</output>

<!-- 946684800 -->