Powershell Subtract 1 day from variable date
<p>How can I use a variable containing a date to act like get-date function in powershell? I have a variable $date containing 2016-09-08. I want to subtract one day from the $date. something like:</p>

<pre><code>$date = "2016-09-08"
$date.AddDays(-1)
</code></pre>

<p>It doesn't work.</p>