I'm parsing dates and times from an XML using this function:
DateTime.ParseExact(timeEndString, "yyyyMMddHHmm", CultureInfo.InvariantCulture);
Everything is working fine unless the time is 00:00. In thins case I'm getting only date without time. Is there any way to prevent omitting of 0000 time while parsing date time like that?
UPD: Thanks for useful comments. I found out that the problem was in completely different part of the code but not in the parsing part.