Last post Feb 11, 2007 04:09 PM by mbanavige
Feb 11, 2007 03:58 PM|rypki|LINK
I want my personal site diplay current date with polish names of months. Is there any ready solution or do I have to write my own code??
Thanks in advance.
Feb 11, 2007 04:09 PM|mbanavige|LINK
the various ToString methods of a date object are culture aware, so to get Polish, you just need to set the threads culture
'set current thread culture to use Polish
Dim polishCulture As System.Globalization.CultureInfo = New System.Globalization.CultureInfo("pl-PL")
System.Threading.Thread.CurrentThread.CurrentCulture = polishCulture
'date methods are culture aware
the result will be : 11 lutego 2007