I am trying to find current quarter of year in PowerShell to append in a filename with format yyyyqq.
yyyyqq
I have already got current month and week as below
one way is:
$yearYYYYQQ = "$(get-date -uformat %Y)$("{0:00}" -f [int]((get-date).month/4) )"