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.
データベースのコンテンツから不正な解析を受け取っています。
これは私が受け取っているものであり、日付文字列です。
フォーマットの例外:文字列が有効な日時として認識されませんでした。インデックス20から始まる不明な単語があります。
2013年11月2日12:30:44pm
使用しDateTime.Parse(...)ていますが、解析を実行するには何を変更する必要がありますか?
DateTime.Parse(...)
使用するDateTime.ParseExact()
DateTime.ParseExact()
DateTime x = DateTime.ParseExact("11/02/2013 12:30:44 p.m.", "dd/MM/yyyy hh:mm:ss tt", null)