Answers for "powershell datetime to string"

0

powershell datetime to string

$DateStr = $Date.ToString("yyyyMMdd")

or 

$DateStr = '{0:yyyyMMdd}' -f $Date
Posted by: Guest on January-26-2022

Code answers related to "powershell datetime to string"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language