I'm trying to parse a date/time string using DateTime.ParseExact
. It works everywhere, except on one machine - it just will not parse on that machine. The question is: Why? What could be different on that machine so that it will cause this behaviour?
Here are some things that I've already looked at:
- The
CultureInfo
is passed toDateTime.ParseExact
, namelyCultureInfo.InvariantCulture
- The regional settings on the rogue machine is the same as the settings on a machine where the parsing works.
- Yes, the string is in the correct format, which is
dd/MM/yyyy HH:mm:ss