$date = "$(Get-Date -Format yyyy-MM-dd)"

2012-05-11


Backa x dagar
$newdate = "$(get-date).AddDays(-10).ToString("yyyy-MM-dd")"

2012-05-01