About the Date Format Specified in the Initialization Settings File
For the display format for data, the default date format is set by locale setting of the browser or the language and locale setting of the server OS.
You can change this date format by coding the pattern of the display format, the separator, and the locale in the format tag of the initialization file, config.xml.
The following table lists the patterns and formats for the display format of dates corresponding to locales.
|
Locale |
||
|
en_US |
pattern-MMddyyyy |
MM∆dd∆yyyy |
|
en |
pattern-ddMMyyyy |
dd∆MM∆yyyy |
|
ja |
pattern-yyyyMMdd |
yyyy∆MM∆dd |
|
other than the above |
pattern-ddMMyyyy |
dd∆MM∆yyyy |
To set the display format of the date in the initialization-setting file, config.xml, use the following tag specifications.
|
Tag |
Attribute |
Contents |
|
format |
not applicable |
Indicates the route tags specifying the display format for the date. |
|
locale-format |
not applicable |
Specifies the locale, the pattern and the separator corresponding to the locale. The following tags are valid in the locale-format tag. date-format locale locale-format If the locale tag is omitted, the locale-format will be invalid. |
|
modify-format |
not applicable |
Specifies a change in the pattern and separator corresponding to the locale. The following tags are valid in the modify-format tag. date-format locale |
|
date-format |
not applicable |
Specifies the pattern and separator. Priority is given to the date-format tag when both the date-format tag and the selectFormat tag are specified directly under the format tag. |
|
pattern |
The specification values are as follows: pattern-MMddyyyy pattern-ddMMyyyy pattern-yyyyMMdd | |
|
separator |
The specification values are as follows: space slash hyphen period If no value is specified, the default value will be used as follows; directly under the:
| |
|
export-separator |
The same specification value as the separator. | |
|
locale |
Not applicable |
Specifies the locale. |
See Also:
Example
of Specifying the Date Format