It's not necessarily wrong. I suspect you're getting a FormatException? When using
ParseExact[
^], the input string must
exactly match the specified format, anything different and the parse will fail.
For example:
DateTime.ParseExact("02/04/2014", "MM/dd/yyyy", CultureInfo.InvariantCulture)
Will parse just fine.
However, this:
DateTime.ParseExact("02/04/2014 12:00:00", "MM/dd/yyyy", CultureInfo.InvariantCulture)
will fail