Why doesn't DateTime.ToShortTimeString() respect the Short Time format in “Regional and Language Settings”?

后端 未结 3 1651
梦毁少年i
梦毁少年i 2020-12-31 13:57

I have run into an issue that is probably due to my mis-understanding of how the DateTime.ToShortTimeString() method works. When formatting time strings with this function,

3条回答
  •  伪装坚强ぢ
    2020-12-31 14:20

    I'm quite sure the fact that the short time format string isn't used in DateTime.ToShortTimeString() or DateTime.ToString("t") is a bug, because it was fixed in .NET framework 4.0.

提交回复
热议问题