Strtodatetime2
简述
字符串->日期时间(包含毫秒)
Strtodatetime2(S:String):DateTIme
名称 | 类型 | 说明 |
---|
S | String | S的格式必须为:yyyy-m-d h:m:s:z 其中日期和时间需要用空格隔开,时间分隔必须用: 如"2021-8-12 10:31:24:199" |
返回 | | 日期时间 |
// 字符串2021-8-12 10:31:24:199 转换为日期时间格式(包含毫秒)
s:="2021-8-12 10:31:24:199"
return StrToDateTime2(s); //结果:44420.4384745255