# DATE-FORMAT

Updated: 10/19/2020, 10:24:56 AM
Created: 10/19/2020, 10:24:56 AM
Last Updated By: Daniel Klein
Read Time: 1 minute(s)

# Description

The DATE-FORMAT command sets or resets the jBASE international date format flag - used when formatting dates for output by jBASE programs. The command takes the general form:

DATE-FORMAT (Options
1

where option may be:

  • I - set to international date formatting, i.e. dd/mm/yy
  • D - set to default language formatting, i.e. mm/dd/yy

If no options are specified, the command will default to the default language format. An example of use may be as:

CRT OCONV(11000,"D2/")
1

to display  02/11/98

or

jsh jim ~ -->DATE-FORMAT (I
CRT OCONV(9822,"D2/")
1
2

to display 11/02/98

See also JBASE_LOCALE

See also JBASE_PIVOT_YEAR

Back to Utilities