Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cultural Settings - Date Conversion

Status
Not open for further replies.

spicysudhi

Programmer
Nov 10, 2003
575
FR
Hi,

I have applied cultural settings to date display and it is converting all western european languages perfetly. For example, 14-Dec-07 in English and 14-Dez-07 in German.

however it is not working for Czech language, it shows the month in roman numbers, example same date shown as 14-XII-07 and 14-Jan-07 as 14-I-07.

How to get this applied for all languages?

tanks in advance.

regards,
Sudhi
 
Nope. The month names' first three letters should be shown just as it does for other languages...

U mean there is a format preference settings for every language we can do?

thanks.
Sudhi
 
Date and number/currency formats vary from culture to culture. For instance, some cultures (like the US) use a number format that separates large numbers by commas and decimals by a period, e.g. 1,000,000.99. In other cultures, the format of the commas/periods is the other way around like so: 1.000.000,99.

Likewise, the 10th of December, 2007 looks like 12/10/2007 to Americans, but 10/12/2007 (or whatever) to other cultures. The .NET culture system understands these differences.

If the .NET Framework is spitting Czech months out as Roman numerals, chances are that it's the way Czechs are used to reading their dates.

You can override the default display with custom format strings to get the month name, but, again, chances are that Roman numerals are preferred in the Czech culture.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top