@DATE(<format>)
Description
Returns the current date in the format specified. The default format is MM/DD/YYYY
.
To set a @DATE attribute, ensure that the date value is in one of the date formats accepted by IBM Content Manager.
Valid date formats are:
yyyy-MM-dd
yyyy/MM/dd
MM-dd-yyyy
MM/dd/yyyy
You can reformat a date field by calling the Validations.IsFieldDateWithReformat function on the current field.
IsFieldDateWithReformat("yyyy/MM/dd")
Example
In this example, the smart parameter returns the current date.
| Action and return value | XML example (if applicable) |
|---|---|
Action: rr_Get("@DATE(mm.dd.yyyy)") Return value: 12.31.2010 |