Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Iso8601 format date and DateTime object conversion instance in PowerShell

2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Reference link:

Https://technet.microsoft.com/zh-cn/library/aa997624(v=exchg.150).aspx

Https://www.pstips.net/convert-iso8601-date-string-to-date-object.html

Https://www.pstips.net/convert-datetime-to-iso8601-format.html

Https://segmentfault.com/a/1190000004292140

Https://edu.aliyun.com/a/9853?spm=5176.11310711.0.0.YrSQfd

Powershell converts date and time to iso8601 format

# $now=Get-Date

# $now.ToString ('yyyy-MM-ddTHH:mm:ss.fffZ')

Powershell converts date strings in iso8601 format into DateTime objects

# $dateTimeStr = '2018-07-10T13purl 4938.532Z'

# $format = 'yyyy-MM-ddTHH:mm:ss.fffZ'

# $formatProvider = [Globalization.CultureInfo]:: InvariantCulture

# [datetime]:: ParseExact ($dateTimeStr,$format,$formatProvider)

Note: please delete # when executing

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report