Wonfer if anyone can help. I am based in the UK and wish to get the localt datetime. In asp.net if I do datetime.now() it returns a time 8 hours in the past as the servers for Winhost I assume are in a different timezone. Anyone know how to achieve this?
This is a very common issues. As a web hoster, we host websites from all over the world and no matter which time zone we configure the server to, we will not satisfy every customer. There are many articles you can find that talk about how to handle timezone issue with asp.net apps http://weblogs.asp.net/cprieto/archive/2010/01/03/handling-timezone-information-in-asp-net.aspx http://geekswithblogs.net/mtreadwell/archive/2004/05/21/5214.aspx