这样的字符串:20170618030000 如何转成这种:2017/06/18/03:00:00 或其他的 DateTime 格式
http://ww2.sinaimg.cn/large/005IRbZEgy1fuo3twiownj307a00q0si.jpg
这样的字符串:20170618030000 如何转成这种:2017/06/18/03:00:00 或其他的 DateTime 格式
http://ww2.sinaimg.cn/large/005IRbZEgy1fuo3twiownj307a00q0si.jpg
|
1
用 DateTime.ParseExact("20170618030000", "yyyyMMddhhmmss", CultureInfo.InvarientCulture)
PS C:\Users\hjc> [datetime]::ParseExact("20170618030000", "yyyyMMddhhmmss", [System.Globalization.CultureInfo]::InvarientCulture) Sunday, June 18, 2017 3:00:00 AM |
|
geelawAug 27, 2018 via iPhone
3
@BadCat 以后先找 docs.microsoft.com
|
|
LuffyGuOct 16, 2018
4
头像不错
|