Converting .NET 2.0 DateTime.ToString () to a different timezone
3 answers
.ToString ("u") will be formatted as UTC, but not converted. This code below converts and represents date and time in UTC format:
System.TimeZone.CurrentTimeZone.ToUniversalTime(Date.Now).ToString("u")
or
DateTime.Now.ToUniversalTime().ToString("u")
other formats can be found here
+4
a source to share