Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Adding one month to a date when the date is March2015 format

$
0
0

I'm trying to do this but it throws an error, if MMMMyyyy is April2015 I want to get May2015

Ta

Jonathan

$Plus1Month=((Get-Date-FormatMMMMyyyy).AddMonths(+1)).Date


Viewing all articles
Browse latest Browse all 6937

Trending Articles