DateTime to Year Quater

"$($date.Year)$("{0:00}" -f [Math]::ceiling($date.Month/3) )"
Details
Format a DateTime value in the Year Quater format

Example
PS C:\> $Date = Get-Date
>> "$($date.Year)$("{0:00}" -f [Math]::ceiling($date.Month/3) )"

201901