I am trying to find current quarter of year in PowerShell to append in a filename with format yyyyqq
.
I have already got current month and week as below:
$WeekYYYYWW = (get-date (Get-Date).AddDays(-7) -UFormat "%Y%V")
$yesterdayMMDDYY=(get-date (get-date).AddDays(-1) -uformat %m%d%Y)
$monthly=(get-date (get-date).AddDays(-1) -uformat %m%Y)