DATE FORMAT SUBSTATEMENT IN FORM LAYOUTS

The DATE FORMAT substatement of the FIELD statement describes the format of a date field on the form.  This substatement converts the date value to a string value as described by the date string.  This is the same format used by the system function @DATSTR.  If this statement is omitted, the default value is MM/DD/YY (optionally YYYY-MM-DD or DD/MM/YYYY if ENABLE (ISO;EUR) DATE is in effect).

SYNTAX

/[DATE FORMAT date_string]

date_string

specifies the date output format.  This is identical to the format used by the system function @DATSTR.  The format must be enclosed in quotation marks.  See the ACCENT R Reference Manual for a detailed description of @DATSTR formats.

EXAMPLE

/DATE FORMAT "WWW, MMM DD, YYYY"

If the field described by this example has the value of 1/20/99, it will be displayed as:  Tue, Jan 20, 1999.  The format of the date value is updated after a valid date has been accepted.

Back to Picture Substatement    Next page Perform Substatement