Passed a String returns a date with the indicated format.
 

1 date.parse

<date.parse
    format='format'
    lang='lang'
    timezone='timezone'
>
    <date /> *
</date.parse>
Example

Pass a string to a date format.

Copy
<xsql-script name='date_parse_sample1'>
    <body>
        <set name='var'>
            <date.parse format='MM-dd-yyyy'>05-01-2100</date.parse>
        </set>
        <println><var /></println>
    </body>
</xsql-script>

Returns:

Copy
01-05-2100

Notas

If a String which does not respect the format is passed, the transformation is not done.