June 2003
Intermediate to advanced
800 pages
34h 20m
English
You want to retrieve the name of a day or month in another language.
Create a CultureInfo object for the appropriate culture, and use the Get-DayName or GetMonthName methods.
The System.Globalization namespace defines a DateTimeFormatInfo type that contains culture-specific date information. You can retrieve the DateTimeFormatInfo object for a culture from the CultureInfo.DateTimeFormat property. However, you need to create the CultureInfo object yourself, using a valid culture name, such as "en-US". (The full list of culture names is provided in the MSDN reference.)
' Create a CultureInfo object representing French - France. Dim Culture As New System.Globalization.CultureInfo("fr-FR") ...Read now
Unlock full access