Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
コード:
DateTime.ParseExact("2/2/2002", "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture)
上げてSystem.FormatExceptionいます。
System.FormatException
誰かが私が間違っていることを教えてくれれば、本当に感謝しています。
そのはずd/M/yyyy
d/M/yyyy
DateTime.ParseExact("2/2/2002", "d/M/yyyy", System.Globalization.CultureInfo.InvariantCulture)
例外の理由は、2 つの場所を変換するためですddが、見つかった文字列は です2/。
dd
2/