Link to home
Start Free TrialLog in
Avatar of sunhux
sunhux

asked on

PowerShell command / script to get previous month

Q1:
I could get the current month with the command
below.  How do I get the previous month ie March ?

PS C:\Users\Art> Get-Date -format MMMM
April


Q2:
Likewise, how do I get previous & next day's date?

I'm on Win 2008 R2 and Windows 7 Profsnl : guess
it's the same PowerShell for both
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sunhux
sunhux

ASKER

Wonderful