$DateP

From m204wiki
Revision as of 21:17, 6 October 2015 by JAL (talk | contribs) (misc formatting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The $DateP function returns a 9-character or 11-character string equal to the current date in either "dd mon yy" format (for example, 04 AUG 91) or "dd mon yyyy" format (for example, 04 AUG 1991). The default is 9 characters.

Syntax

The format for $DateP is:

$DateP[(year-format)]

where year-format is optional and can be:

0 The default; indicates that $DateP returns a 9-character string equal to the current date in the DD MON YY format.
1 Indicates that $DateP returns an 11-character string equal to the current date in the DD MON YYYY format.

If Model 204 encounters an error, the function returns all asterisks (*).

See also Overview of $Date functions.

Example

BEGIN SET HEADER 1 'TRIAL BALANCE' WITH $DATEP AT COLUMN 30 NEW PAGE . . .