如何在PowerShell中获取date-1并将其格式化为mm-dd-yyyy?
示例:如果今天是2013年11月1日,我的代码中需要10-31-2013.
我之前使用过AddDays(-1),但我似乎无法使用任何格式化选项.
powershell formatting date
date ×1
formatting ×1
powershell ×1