Skip to main content

Parse date and time

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

<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

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

<!-- 946684800 -->