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@dotnet.itags.org.hotmail.comYa Ya,
See this article on settig culture.
http://www.dotnetjunkies.com/Tutori...33D2EDD38B.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
>
0 comments:
Post a Comment