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

后端 未结 6 770
闹比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:17

    "123" and "12345" seem to be ambiguous with respect to the TryParseExact method. "12345" could be either 12:34:50 or 01:23:45 for instance. Just a guess though.

提交回复
热议问题