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.
JValue から日時文字列を読み取ろうとしていますが、読み取り時に変更されます。
{ "updated": "2012-12-12T00:00:00Z", } JSON["updated"].Value<String>() = 12/12/2012 00:00:00
上記の JSON 文字列は、JSON オブジェクトを調べると見つかります。なぜこれをやっているのですか?
おそらく内部でDateTimeに解決し、DateTime.ToStringを実行しています。
試す
JSON["updated"].Value<DateTime>().ToString("your format")