The FORMAT attribute defines the data formatting for numeric and date time fields, for input and display.
FORMAT = "format"
The FORMAT attribute can be set to define a input and display format for numeric and date fields.
The data format is used when converting the input buffer to the program variable, and when displaying program variable data to form fields. For example, when defining a FORMAT="yyyy-mm-dd" for a form field bound to a program variable defined as a DATE, the user can input a date as 2013-12-24, and the date value will be displayed in the same manner.
Do not confuse the FORMAT and PICTURE attributes: The PICTURE attribute is used to define an input mask for character string fields, such as vehicle registration numbers. Do not mix PICTURE and FORMAT attributes in field defintions.
If the format string is smaller than the field width, you get a compile-time warning, but the form is usable.
The format string can be any valid string expression using formatting characters as described in Formatting numeric values and Formatting DATE values.
EDIT f001 = order.thedate, FORMAT = "mm/dd/yyyy";