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 として認識されませんでした。
DateTime date = DateTime.ParseExact("4/29/2013", "MM/dd/yyyy", null);
1 つまたは 2 つの数値である月の値の形式に一致させるには、M代わりにone を使用します。MM
M
MM
d何日も同じです。
d
DateTime date = DateTime.ParseExact("4/29/2013", "M/dd/yyyy", null); DateTime aDate = DateTime.ParseExact("4/2/2013", "M/d/yyyy", null);