473,403 Members | 2,366 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Month in different languages (globalization)

Hi

The following code will give me the month names in the given culture:

CultureInfo cultureInfo = new CultureInfo(CultureInfo.CurrentCulture.Name);
string[] months = cultureInfo.DateTimeFormat.MonthNames;

Now I'm wondering if I can also get the translation of the words day, month
and year in different languages from the globalization class? Is there a
property/method for those words? E.g. cultureInfo.DateTimeFormat.Month would
return "Monat" (month) if German culture.
Nov 16 '08 #1
0 1338

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: bb | last post by:
any way to prevent displaying the previous and next months in the calendar control? i have tried just blanking the text out in the dayrender IsOtherMonth and also dynamically changing the...
1
by: Ryan Ternier | last post by:
Our applications are about to go cross cultural, so we need to allow multiple languages. We built our application to handle this, but have not implemented it yet. One method we talked about...
4
by: Dave | last post by:
Dim iMonth As Integer = 1 Dim strMonth As String = Format(iMonth, "MMMM") console.write(strMonth) Output = "MMMM" expected "January"??? what should the code be?
7
by: Atara | last post by:
Did you know that in Turkish strupper("i") <> "I" ?! They have dotted i and un-dotted I, both in upper case and in lower case... We found it only after a complain from a Turkish client. ...
4
by: Dirk Behnke | last post by:
How can I start a new process with a different CultureInfo? I have tried already to set the CultureInfo of the thread starting the new process before creating the Process object, but it doesn't...
6
by: Edwin Knoppert | last post by:
I can't find a way to obtain the months name from a date. Like 'August'
5
by: Terry Olsen | last post by:
This is the easiest way I can think of to do this: tmp=Right("0" & Now.Month.ToString, 2) The only way I've figured to do it the .NET way is this: tmp="0" & Now.Month.ToString...
21
by: Darin | last post by:
I have an applicatoin that works 100% perfect when running on a machine setup for English (United States), but when I change it to Spanish (Mexico), the dates start giving me fits. THe reason is...
3
by: Dave Griffiths | last post by:
Hi All Using VB 2005 I am writing a program that will be used on machines which have different locales (English, Norwegian and Swedish) I am restricting textbox input using keypress to just...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.