DATE
Returns the date (in the specified order and format) that EngageOne™ Enrichment began running the current application.
Note: EngageOne™ Enrichment evaluates the DATE function call only once per application—for the first document. Thereafter, the date and its format remain constant.
Syntax
DATE([format,style,year,month,day])
Arguments
Argument | Description | Default | ||
---|---|---|---|---|
[format] | Indicates the order in which EngageOne™ Enrichment returns month, day, and year. The style value modifies format, as follows: | N | ||
format value | style set to Y | style set to N | ||
N (numeric) | mm/dd/yy | dd/mm/yy | ||
O (ordered) | yy/mm/dd | yy/mm/dd | ||
L (long) | month dd, yyyy | dd month yyyy | ||
S (short) | mon dd, yyyy | dd mon yyyy | ||
J (julian) | yyddd | yyddd | ||
I (international) | yyyymmdd | yyyymmdd | ||
M(Middle-endian) | mmddyyyy | mmddyyyy | xa | |
[style] | One of the following: | Y | ||
Y (yes) | Use United States formatting. | |||
N (no) | Use non-United States (that is, international) formatting. | |||
[year] | Indicates the year component of the date that is to be formatted. | current year | ||
[month] | Indicates the month component of the date that is to be formatted. If 0 is specified, the day is assumed to be a Julian day. | current month | ||
[day] | Indicates the day component of the date that is to be formatted. | current day |
Results
Result | Description |
---|---|
Return | The properly formatted date. |
%%RC | Always set to 0. |
%%RM | A null string (''). |
%%RV | Always set to 0. |
Examples
Function Call | Return | Function Call | Return |
---|---|---|---|
DATE(N,Y) | 01/15/95 | DATE(N,N) | 15/01/95 |
DATE(O,Y) | 95/01/15 | DATE(O,N) | 95/01/15 |
DATE(L,Y) | January 15, 1995 | DATE(L,N) | 15 January 1995 |
DATE(S,Y) | Jan 15, 1995 | DATE(S,N) | 15 Jan 1995 |
DATE(J,Y) | 95015 | DATE(J,N) | 95015 |
DATE(I,Y) | 19950115 | DATE(I,N) | 19950115 |