International system values: Date and time

The Date and time system value is also known as QDATFMT, QDATSEP, and QTIMSEP. You can use these system values to set the format to use when the system displays the date and to specify the symbol used to separate the date and time.

Quick reference
Location From IBM® Navigator for i, select Configuration and Service > System Values. Right-click on International and click Properties, then select the Formats tab.
Special authority None.
Default value Varies for different countries or regions.
Changes take effect Immediately for new jobs that enter the system after the change. This does not include jobs that are active at the time of the change.
Lockable No.

What can I do with this system value?

You can specify date and time functions. You have the following options:

Date format (QDATFMT)
This option specifies the default date format for the system. You can choose any of the following formats for the date (the examples assume that you have selected a slash as the date separator):
  • Year Month Day

    For example: YY/MM/DD

  • Month Day Year

    For example: MM/DD/YY

  • Day Month Year

    For example: DD/MM/YY

  • Julian

    For example: YY/DDD

Date separator (QDATSEP)
This option specifies the character used to separate the date. The separator can be one of the following characters:
  • Slash (/)
  • Dash (-)
  • Period (.)
  • Comma (,)
  • Blank
Time separator (QTIMSEP)
This option specifies the character that separates the parts of the time. The separator can be one of the following characters:
  • Comma (,)
  • Period (.)
  • Colon (:)
  • Blank