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.
この日付文字列を解析しようとしていますが、フォーマットの例外が発生し、頭がおかしくなります。誰か助けてもらえますか?
string date = "05032013123020"; string format = "ddMMyyyyHHmmss"; DateTime result = DateTime.ParseExact(date, format, null);
文字列の日付を貼り付けた後="05032013123020"; Notepad ++を使用すると、次の結果が表示されます。
string date = "US05032013123020";
そのため、解析でエラーが発生します