AIX | HP-UX | Linux | OS/2 | OS/390 | OS/400 | PTX | SUN | Win NT |
X | X | X | X | X | X | X | X | X |
Purpose
Returns the current system date in the specified format.
Format
@DTW_DATE(format, stringOut)
@DTW_DATE(stringOut)
@DTW_rDATE(format)
@DTW_rDATE()
Parameters
Data Type | Parameter | Use | Description |
---|---|---|---|
string | format | IN | A variable or literal string specifying the data format. Valid
formats include:
The default is N. |
string | stringOut | OUT | A variable that contains the date in the specified format. |
Return Codes
Table 33. DTW_DATE Return Codes
Return Code | Explanation |
---|---|
-1001 | The server could not process a Net.Data request to allocate memory. |
1001 | An input parameter contained a NULL value. |
1003 | An incorrect number of parameters were passed on a function call. |
1005 | A parameter passed on a function call, required to be a string variable, was of a different variable type. |
1006 | A literal string was passed on a function call for a parameter which was required to be an output parameter. |
1007 | A parameter contains a value which is not valid. |
Examples
Example 1: Normal date format
@DTW_DATE(results)
Example 2: European date format
@DTW_DATE("E", results)
Example 3: US date format
%HTML(report){ <p>This report created on @DTW_rDATE("U").</p>