P
Peter Morris
var value = DateTime.MaxValue;
string asString = value.ToString("dd/MM/yyyy HH:mm:ss");
value = DateTime.ParseExact("dd/MM/yyyy HH:mm:ss");
Run this, and I will bet it works, right?
Now (on Vista at least) go to your Windows regional settings and set both
your long and short date format to yyyy-MM-dd and try it again!
ToString uses - instead of / as instructed in the code, causing ParseExact
to fail.
My questions are
01: Does anyone else see this?
02: If so which O/S are you on?
03: Where should I report it?
string asString = value.ToString("dd/MM/yyyy HH:mm:ss");
value = DateTime.ParseExact("dd/MM/yyyy HH:mm:ss");
Run this, and I will bet it works, right?
Now (on Vista at least) go to your Windows regional settings and set both
your long and short date format to yyyy-MM-dd and try it again!
ToString uses - instead of / as instructed in the code, causing ParseExact
to fail.
My questions are
01: Does anyone else see this?
02: If so which O/S are you on?
03: Where should I report it?