We've just moved to a new server and everything's being going well. However earlier I ran into a .NET error when it was trying to convert a string in the format "dd/mm/yyyy" to a date, now I changed the culture setting in the local web.config but we require this to be global.
Where do I change this? I assumed the machine.config but I couldn't find any familiar settings on the older server.
Or am should I be looking at the server side and finding a setting to set the culture on the machine to be en-GB?
== UPDATE == I've changed the regional settings and it still fails unfortunately. Is there a machine.config global setting that may be screwing it up? At the moment it seems to be using invariant and failing with that.
I'm using Windows Server 2008 with IIS7 if that is any help at all.
The string being used is hard coded into the page because it is a closing date for a registration form for a one off site.
The code being ran is as follows:
if (DateTime.Now > Convert.ToDateTime("26/04/2008 12:00"))
Very simple and has worked a million times before now, it is only on this new setup that this error occurs.