Quantcast
Channel: SQLServerCentral » Programming » Powershell » Latest topics
Viewing all articles
Browse latest Browse all 467

date formats

$
0
0
((Get-Date).AddMonths(1))
gives me
Saturday, August 25, 2018 3:06:26 AM

(Get-Date -format 'Y')
gives me
July, 2018

How do  i get August, 2018 when I run code  in the month of July with the output in this form

Viewing all articles
Browse latest Browse all 467

Trending Articles