Calendar control in custom language (en,fr,de,sp,...)

Hi Experts,

I want to use the calendar control, but it seems to be displayed with the browser language.
But I need to use my own website language. So is it possible to set ?
I mean if my website doesn't support french, the default language is english. But the calendar is displayed in french (not professional I think).

I also want to know if it's possible to translate a month like november in french,spanish (for example) with the framework as the calendar control does.

Thanks in advance to tell me more about this particular problem.
LVL 9
nouloukAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mmarinovCommented:
Hi noulouk,

have you tried to set the System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");

Regards!
B..M
mmarinov
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nouloukAuthor Commented:
Yes, thanks you were right. It depends on my cultureinfo.

Could you give me about my other question ?
I also want to know if it's possible to translate a month like november in french,spanish (for example) with the framework as the calendar control does.
0
mmarinovCommented:
noulouk,

System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo("fr-FR");
System.Threading.Thread.CurrentThread.CurrentCulture = ci;

System.Globalization.DateTimeFormatInfo fi = ci.DateTimeFormat;
Response.Write(fi.GetMonthName(11));

Regards!
B..M
mmarinov
0
nouloukAuthor Commented:
Thank you very much.

Follow this link and I'll grade you more:
http://www.experts-exchange.com/Programming/Programming_Languages/C_Sharp/Q_21212997.html
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.