Generates a date.
 

1 date

<date
    dd='dd'
    MM='MM'
    yy='yy'
    hh='hh'
    mm='mm'
    ss='ss'
    millisecond='millisecond'
    format='format'
>
    <exp /> ?
</date>

Exceptions

attribute 'dd' required

The attribute has not been specified.

attribute 'MM' required

The attribute has not been specified.

attribute 'yy' required

The attribute has not been specified.

unable to convert from non String type:

The conversion of a No String type is not possible

parse date expresion error

Transformation error.

Example

Generate a date.

Copy
<xsql-script name='date_sample1'>
    <body>
        <println><date dd='10' MM='10' yy='2005' /></println>
    </body>
</xsql-script>

A date with the format yyyy-mm-dd is created, being able to show the following attributes: the hours (hour), the minutes (minute), the seconds (second) and the milliseconds (millisecond).

Copy
10-10-2005
Example
Copy
<xsql-script name='date_sample2'>
   <body>
       <println><date format='dd-MM-yyyy'>01-01-2004</date></println>
   </body>

</xsql-script>

Generate a date.

Copy
01-01-2004