Dateformat

The dateformat option specifies the format you want to use to display or enter dates.

Use this option if you want to change the default date format for the language of the message repository you are using.

By default, the backup-archive and administrative clients obtain format information from the locale definition in effect at the time you start the client. Consult the documentation on your local system for details about setting up your locale definition.

You can use the dateformat option with the expire command.

When you include the dateformat option with a command, it must precede the fromdate and pitdate options.

Options File

Place this option in the client options file (dsm.opt). You can set this option on the Regional Settings tab, Date Format drop-down list of the Preferences editor.

Syntax

Read syntax diagramSkip visual syntax diagramDATEformat  format_number

Parameters

format_number
Displays the date using one of the following formats. Select the number that corresponds to the date format you want to use:
1
MM/DD/YYYY

This is the default for the following available translations:

  • US English
  • Chinese (Traditional)
  • Korean
2
DD-MM-YYYY

This is the default for the following available translations:

  • Brazilian Portuguese
  • Italian
3
YYYY-MM-DD

This is the default for the following available translations:

  • Japanese
  • Chinese (Simplified)
  • Polish
4
DD.MM.YYYY

This is the default for the following available translations:

  • German
  • French
  • Spanish
  • Czech
  • Russian
5
YYYY.MM.DD

This is the default for the following available translations:

  • Hungarian
6
YYYY/MM/DD
7
DD/MM/YYYY

Examples

Options file:
dateformat 3
Command line:
-date=3

This option is valid on the initial command line and in interactive mode. If you use this option in interactive mode, it affects only the command with which it is specified. When that command completes, the value reverts to the value at the beginning of the interactive session. This is the value from the dsm.opt file unless overridden by the initial command line or by an option forced by the server.

Additional considerations for specifying time and date formats

The date or time format you specify with this option must be used when using options that take date and time as input. Examples are: totime, fromtime, todate, fromdate, and pittime.

For example, if you specify the timeformat option as TIMEFORMAT 4, the value that you provide on the fromtime or totime option must be specified as a time such as 12:24:00pm. Specifying 13:24:00 would not be valid because TIMEFORMAT 4 requires an hour integer that is 12 or less. If you want to specify up to 24 hour values on an option, and if you want to use commas as separators, you must specify TIMEFORMAT 2.