I have created a Webapplication, in English which supports for Spanish and Italian language also. Once when i host it in English environment it works fine for all the type of browser Language settings (English, Spanish and Italian). But when I host it in
Spanish environment and my Browser Language setting is Italian, the Dateformat will cause a problem. As I am usign Excel sheet for generating a reports and I want to print a date inthe following format (dd-MMM-yyyy). If I change the dateformat to (dd-MM-yyyy)
than it works. But I want to print the date in (dd-MMM-yyyy). So how I do that.
asifiqbal984...
0 Points
2 Posts
Spaanish server with Italian localization
May 21, 2012 11:38 AM|LINK
I have created a Webapplication, in English which supports for Spanish and Italian language also. Once when i host it in English environment it works fine for all the type of browser Language settings (English, Spanish and Italian). But when I host it in Spanish environment and my Browser Language setting is Italian, the Dateformat will cause a problem. As I am usign Excel sheet for generating a reports and I want to print a date inthe following format (dd-MMM-yyyy). If I change the dateformat to (dd-MM-yyyy) than it works. But I want to print the date in (dd-MMM-yyyy). So how I do that.
Mudasir.Khan
All-Star
15346 Points
3142 Posts
Re: Spaanish server with Italian localization
May 21, 2012 11:54 AM|LINK
are you setting System.Threading.Thread.CurrentThread.CurrentCulture and System.Threading.Thread.CurrentThread.CurrentUICulture properly ?
asifiqbal984...
0 Points
2 Posts
Re: Spaanish server with Italian localization
May 21, 2012 12:05 PM|LINK
I am just setting
Page.UICulture = "en-US"
Page.Culture = "en-US".
But this culture I will place after displaying the date into the Excel