更新时间:2023-02-12 17:18:05
您可以使用 DateTime.ParseExact 传递你需要的格式。
You can use DateTime.ParseExact to pass the format you need.
下面是一个例子:
VAR分析= DateTime.ParseExact(20100825161500,YYYYMMDDHHMMSS,NULL);
可能的格式值列在 标准日期和时间格式字符串和的自定义日期和时间格式字符串
Possible format values are listed at Standard Date and Time Format Strings and Custom Date and Time Format Strings