Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (3/12/10)
In this post: How Can I Format Dates in Windows PowerShell? Hey, Scripting Guy! I am having trouble formatting a date in Windows PowerShell. I would like to format the date as seen here: (Get-Date).AddDays(-1) | $_.ToString("yyyy-MM-dd") However, I am getting an error when I run that command. The only way I found to...