Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell Get-date minus 616 days.

$
0
0

The problem i'm facing is as follows:

I need the date for 88 weeks ago (616 days),

I managed to create this string: (get-date).AddDays(-616).ToString("dd-mm-yyyy")

However the date it produces is 31-36-2013 and as we all know there are only 12 month in a year.

Is there a way to fix this?

Any suggestions would be appreciated,


Viewing all articles
Browse latest Browse all 15028

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>