Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/259.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 用毫秒解析日期时间_C# - Fatal编程技术网

C# 用毫秒解析日期时间

C# 用毫秒解析日期时间,c#,C#,我正在分析这个: 2013年11月20日9:08:58 603 使用此代码: DateTime.ParseExact(@"20/11/2013 9:08:58 603", @"MM/dd/yyyy h:mm:ss FFF", CultureInfo.InvariantCulture); 为什么会失败?将格式更改为此“dd/MM/yyyyy h:MM:ss FFF”将格式更改为此“dd/MM/yyyyy h:MM:ss FFF”月“20”不存在。您的格式不正确。月份“20”不存在。您的格式不正确

我正在分析这个:

2013年11月20日9:08:58 603

使用此代码:

DateTime.ParseExact(@"20/11/2013 9:08:58 603", @"MM/dd/yyyy h:mm:ss FFF", CultureInfo.InvariantCulture);

为什么会失败?

将格式更改为此
“dd/MM/yyyyy h:MM:ss FFF”
将格式更改为此
“dd/MM/yyyyy h:MM:ss FFF”

月“20”不存在。您的格式不正确。月份“20”不存在。您的格式不正确。