I have deployed my ASP.Net Application on Windows Server 2000, Service Pack
4, when I run my Application and shows today's date with
system.date.today.ToShortDateString, it shows in the format m/d/yyyy while
in my Regional Settings, I have defined the format as dd/MM/yyyy.
If I run the same Application on my Laptop with Windows XP Pro, it displays
the correct date format, any idea please ?
Best Regards,
Luqman
Milosz Skalecki [MCAD] - 02 Jul 2007 14:52 GMT
Hi there,
Server has got different locale setting. You can force ASP.NET worker
process to use different locale by changing <globalization> element in the
web.config / machine.config file:
<system.web>
... other settings
<globalization culture="en-GB"/>
... other settings
</system.web>
hope this helps

Signature
Milosz
> I have deployed my ASP.Net Application on Windows Server 2000, Service Pack
> 4, when I run my Application and shows today's date with
[quoted text clipped - 7 lines]
>
> Luqman
luqman - 03 Jul 2007 06:34 GMT
Hi,
Thanks V.Much, it resolved my problem.
Best Regards,
Luqman
> Hi there,
>
[quoted text clipped - 24 lines]
> >
> > Luqman
Patrice - 02 Jul 2007 14:56 GMT
An ASPX page runs on the server so it uses the server settings not your
workstation settings.
You could use the globalization section in the web.config file to tell
ASP.NET which country should be used (rather than messing with system wide
server settings. See :
http://msdn2.microsoft.com/en-us/library/hy4kkhe0.aspx
>I have deployed my ASP.Net Application on Windows Server 2000, Service Pack
> 4, when I run my Application and shows today's date with
[quoted text clipped - 8 lines]
>
> Luqman