1 date
<date
dd='dd'
MM='MM'
yy='yy'
hh='hh'
mm='mm'
ss='ss'
millisecond='millisecond'
format='format'
>
<exp /> ?
</date>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Add | String | Day. | |||
AMM | String | Month. | |||
Ayy | String | Year. | |||
Ahh | String | Hour. | |||
Amm | String | Minute. | |||
Ass | String | Second. | |||
Amillisecond | String | Millisecond. | |||
Aformat | String | Allows to define the format with which the string <exp> passed as a parameter and containing a date will be evaluated. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Eexp | String |
Returns | |
---|---|
Type | Description |
Date | Generated 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.
Generate a date.
<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).
10-10-2005
<xsql-script name='date_sample2'> <body> <println><date format='dd-MM-yyyy'>01-01-2004</date></println> </body> </xsql-script>
Generate a date.
01-01-2004