I've been told I'm going to receive a datetime in the format:
yyyy-mm-ddThh:mm:sss
That comes from a Java web service, even if I'm trying to get what's the point for the three "sss" at the end it seems to be the final format and not a typo.
So I'm trying to Parse it using .Net (actually C#)
var s = "2014-09-16T12:17:057";
var d = DateTime.ParseExact(s, "yyyy-MM-ddThh:mm:sss", CultureInfo.InvariantCulture);
But it raises an exception
Sting was not recognized as a valid DateTime
Thanks,
UPDATE:
As suspected, third time the charm and I've been confirmed the actual format should be
yyyy-MM-ddTHH:mm:ss