Private/ConvertTo-Rfc822DateTime.ps1
function ConvertTo-Rfc822DateTime { param ( [Parameter(Mandatory)] [DateTime]$DateTime ) @( $DateTime.ToString('ddd, d MMM yyyy HH:mm:ss', [cultureinfo]::InvariantCulture) ($DateTime.ToString('zzz', [cultureinfo]::InvariantCulture) -replace ':', '') ) -join ' ' } |