I recently switched my hosting provider, and due to the time zone in which the server is located, my code stops working.
The hosting server reports in Pacific Time. However, my code should work with GMT, as my site is intended for the UK market. So, all my displays and search queries should be in dd / MM / yyyy format
How can I explain the difference?
For example, when I do DateTime.Parse ("03/11/2008"), it fails because I assume that "Parse" matches the server settings. I also get: "String was not recognized as a valid DateTime." in all my code.
source share