.NET: Why is TryParseExact failing on Hmm and Hmmss?

后端 未结 6 762
闹比i
闹比i 2020-12-03 22:07

I\'m trying out the DateTime.TryParseExact method, and I have come over a case that I just don\'t get. I have some formats and some subjects to parse that each

6条回答
  •  春和景丽
    2020-12-03 22:15

    0123 012345

    I'm guessing it looks for a length of 2/4/6 when it finds a string of numbers like that. Is 123 supposed to be AM or PM? 0123 isn't ambiguous like that.

提交回复
热议问题