The output from DATE /T in the United States is "Mon 01/23/1997" but this is
dependent on the
country code.
The date formats for different country codes are as follows:
Country or language CountryCode Date_format Time_format
United States 001 01/23/1997 5:35:00.00p
Czechoslovakia 042 23.01.1997 17:35:00
France 033 23.01.1997 17:35:00
Germany 049 23.01.1997 17:35:00
Latin America 003 23/01/1997 5:35:00.00p
International English 061 23/01/1997 17:35:00.00
Portugal 351 23-01-1997 17:35:00
Finland 358 23.1.1997 17.35.00
Switzerland 041 23.01.97 17 35.00
Norway 047 23.01.97 17:35:00
Belgium 032 23/01/97 17:35:00
Brazil 055 23/01/97 17:35:00
Italy 039 23/01/97 17.35.00
United Kingdom 044 23/01/97 17:35:00.00
Denmark 045 23-01-97 17.35.00
Netherlands 031 23-01-97 17:35:00
Spain 034 3/12/98 17:35:00
Hungary 036 1997.01.23 17:35:00
Canadian-French 002 1997-01-23 17:35:00
Poland 048 1997-01-23 17:35:00
Sweden 046 1997-01-23 17.35.00
Date Formatting
In Control Panel Regional settings a short date STYLE can be set. This
can be used to change
the date separator, the order (e.g. dd/mm/yyyy or mm/dd/yyyy) and the number of characters
used to display days and months.
The ISO standard
8601
defines a date and time format that can be used internationally:
YYYY-
MM-DD
this avoids the confusion that is often caused by differences in language and local
custom.
Chia sẻ với bạn bè của bạn: