I am trying to convert a string of this format:
MM/dd/yyyy HH:mm
Logging in is from the US database, that is, i.e.: 09/20/2010 14:30
I know that my string is always in the USA, but when I show it, I need to translate this to local time so that the string is converted to:
09/20/2010 19:30 (for UK for instance)
I tried a few things, but nothing seems to give me the correct solution when I run the US machine against the UK or the Ge machine I tried:
CompletedDttm = DateTime.ParseExact(value, "MM/dd/yyyy HH:mm", CultureInfo.CurrentCulture); CompletedDttm = DateTime.ParseExact(value, "MM/dd/yyyy HH:mm", new CultureInfo("en-US"));
They all work locally (US machine), but they do not convert the time into local time on a European machine.
Thank you, Tony
source share