更新时间:2021-06-28 02:18:12
试试 DateTime.ParseExact Method(System) [ ^ ]
自定义日期和时间格式字符串 [ ^ ]
例如
Try DateTime.ParseExact Method (System)[^]
Custom Date and Time Format Strings[^]
e.g.
DateTime result = DateTime.ParseExact("16/11/2016", "dd/MM/yyyy", CultureInfo.InvariantCulture);