ASP.Net not showing Correct System Short Date format ?

L

Luqman

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top