This function allows to generate a date based in 3 numerical parameters, the day, the month and the year. There is 2 valid annotations, depending if the parameters are passed using arguments or attributes.
 

1 date.mdy

<date.mdy
    m='m'
    d='d'
    y='y'
>
    <m /> !
    <d /> !
    <y /> !
</date.mdy>

Exceptions

attribute 'd' required

The attribute has not been specified.

attribute 'm' required

The attribute has not been specified.

attribute 'y' required

The attribute has not been specified.

Example

Create a date with the MDY function, pasing the values as arguments (elements child).

Copy
<xsql-script name='date_mdy_sample1'>
    <body>
        <set name='d'>4</set>
        <set name='m'>9</set>
        <set name='y'>2004</set>                                    
        <println><date.mdy><m/><d/><y/></date.mdy></println>
    </body>
</xsql-script>

Results:

Copy
04-09-2004
Example

Create a date with the MDY function, passing the values as attributes.

Copy
<xsql-script name='date_mdy_sample2'>
	<body>
		<println><date.mdy d='4' m='9' y='2004' /></println>
	</body>
</xsql-script>

Returns:

Copy
04-09-2004