RE: Set culture for a DLL (class library) referenced from web applicat
From: MikeL (MikeL_at_discussions.microsoft.com)
Date: 11/21/04
- Next message: Patrik Löwendahl [C# MVP]: "Re: project security issue"
- Previous message: QPatrik_L=F6wendahl_=5BC=23_MVP=5D=22?=: "Re: changing permissions of a network share using .net"
- In reply to: Ya Ya: "Set culture for a DLL (class library) referenced from web application"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 21 Nov 2004 14:53:01 -0800
Ya Ya,
See this article on settig culture.
http://www.dotnetjunkies.com/Tutorial/17E26271-E212-4248-965F-4B33D2EDD38B.dcik
I don't believe you are setting the culture on the thread and the
application assumes the culture of the server.
HTH MikeL.
"Ya Ya" wrote:
> I am developing a DLL (class library) for a web application of mine.
>
> In the web.config of the web application I have set: culture="en-GB"
> uiCulture="en" in order that the date format will be dd/mm/yyyy.
>
> I also changed the regional settings to that date format.
>
> When I am using the Now() function in the DLL I get the date format in
> mm/dd/yyyy instead. Why the date format in the DLL is different? Shouldn't
> it take the culture settings from the web application he is referenced from?
>
> How can I control the date format of the DLL (class library)?
>
>
> Thanks for your time
>
> ra294@hotmail.com
>
>
>
- Next message: Patrik Löwendahl [C# MVP]: "Re: project security issue"
- Previous message: QPatrik_L=F6wendahl_=5BC=23_MVP=5D=22?=: "Re: changing permissions of a network share using .net"
- In reply to: Ya Ya: "Set culture for a DLL (class library) referenced from web application"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|