【发布时间】:2023-04-11 04:42:02
【问题描述】:
我需要将 Windows PowerShell 中的日期转换为 ISO 8601 格式。
在 Linux/Unix 中没有问题
TZ=0 date -d "<random-format>" +%Y-%m-%dT%H:%M:%S.000Z
现在我需要在 Windows PowerShell 中执行相同的操作。 Windows 上的输出格式为
Wednesday, 19. July 2017 01:06:13
我该怎么做?
【问题讨论】:
-
Get-Date -Format o
标签: windows powershell timestamp iso8601