|
Home > Archive > IIS Server > August 2005 > Changing IIS Regional Settings (ASP.NET)
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Changing IIS Regional Settings (ASP.NET)
|
|
| Matthias Kwiedor 2005-08-30, 6:00 pm |
| Hi!
We have a ASP.NET Webservice and Tools who connect to them. In the past the
service runs under a English Win2k3 Webserver Edition. Now we have a
german, which means we have different Date Type.
Is there a way to set the IIS or ASP.NET to use the english Dateformat
again?
I tried it with login with IUSR_ and ASPNET user, but they have allready
the English (US) regional Options.
Any help would be great
Regards
Matthias
| |
| Chris Crowe [MVP] 2005-08-31, 2:52 am |
| Sounds more like an ASP.NET forum question but I will give it a go anyway.
You may need some code like this, and plug it into your code or a create a
function call and make each request use it.
Thread.CurrentThread.CurrentCulture =
CultureInfo.CreateSpecificCulture("en-us");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-us");
This should make the current culture for parsing and displaying dates en-us.
--
Cheers
Chris
Chris Crowe [IIS MVP]
http://blog.crowe.co.nz
"Matthias Kwiedor" <crazyivan9@hotmail.com> wrote in message
news:Xns96C2A58B1F329crazyivan9hotmailco
m@207.46.248.16...
> Hi!
>
> We have a ASP.NET Webservice and Tools who connect to them. In the past
> the
> service runs under a English Win2k3 Webserver Edition. Now we have a
> german, which means we have different Date Type.
>
> Is there a way to set the IIS or ASP.NET to use the english Dateformat
> again?
>
> I tried it with login with IUSR_ and ASPNET user, but they have allready
> the English (US) regional Options.
>
>
> Any help would be great
>
>
>
> Regards
>
>
>
>
> Matthias
|
|
|
|
|