regional settings in iis server

S

Stefan Ljungstedt

Hello

I´ve ran into trouble after a server upgrade. Win server 2003, IIS ver. 6.
All regional settings on the server is swedish(that´s what i want) and it
looks correct in all ways but when running the date function in a asp page
it returns english short date format 24/5/2004 when I think it should be
2004-05-24.

The problem is that the application assumes swedish short date format.

I´ve read somewhere that the IIS server account has it´s own settings, how
do I change this ?

regards
Stefan Ljungstedt
 
A

Aaron Bertrand - MVP

You modify IUSR_MachineName's password, log in as them, and change the
setting.

However, this can be overridden if someone is logged onto the server (e.g.
through a terminal server session).

There is a better way, that will prevent you from wondering if your shortcut
format will still work the same way tomorrow... just format the date
yourself instead of relying on formatDateTime.

http://www.aspfaq.com/2313

You can also play with session.LCID but I don't think there is a default
producing YYYY-MM-DD.

http://www.aspfaq.com/2260
 
D

Dennis Eklund

Have you tried Session.LCID = 1053

<%
Session.LCID = 1053
response.write date()
%>
 

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,149
Members
46,695
Latest member
StanleyDri

Latest Threads

Top