N
Nick Gilbert
Hi,
One of our servers is behaving differently to all the others when
printing dates. They seem to be outputting in American format (12 hour)
when the default for a UK machine should be UK format (dd/mm/yyyy).
The following code:
DateTime.Now.ToString()
DateTime.Now.ToString("dd/MM/yyyy hh:mm:ss")
...produces the following output:
5/10/2007 11:50:39 AM
10/05/2007 11:50:39 (correct)
On all other machines we have, both lines are the same as the second one
which is correct.
The settings in the control panel on the server are correct.
What's causing this discrepancy and how can I fix this? I seem to
remember something to do with a registry key or ASP.NET using the
settings of the console user by default. How can I force the machine
default to be UK settings?
Thanks,
Nick...
One of our servers is behaving differently to all the others when
printing dates. They seem to be outputting in American format (12 hour)
when the default for a UK machine should be UK format (dd/mm/yyyy).
The following code:
DateTime.Now.ToString()
DateTime.Now.ToString("dd/MM/yyyy hh:mm:ss")
...produces the following output:
5/10/2007 11:50:39 AM
10/05/2007 11:50:39 (correct)
On all other machines we have, both lines are the same as the second one
which is correct.
The settings in the control panel on the server are correct.
What's causing this discrepancy and how can I fix this? I seem to
remember something to do with a registry key or ASP.NET using the
settings of the console user by default. How can I force the machine
default to be UK settings?
Thanks,
Nick...