$DateTime = [DateTime]::SpecifyKind($date, [DateTimeKind]::Unspecified)
$from = [System.TimeZoneInfo]::FindSystemTimeZoneById($FromTimeZone)
$to = [System.TimeZoneInfo]::FindSystemTimeZoneById($ToTimeZone)
$utc = [System.TimeZoneInfo]::ConvertTimeToUtc($DateTime, $from)
[System.TimeZoneInfo]::ConvertTime($utc, $to)
Convert from one Time Zone to another.
PS C:\> $Date = Get-Date '3/28/2019 10:35 AM' >> $FromTimeZone = 'Central Standard Time' >> $ToTimeZone = 'US Mountain Standard Time' >> $DateTime = [DateTime]::SpecifyKind($date, [DateTimeKind]::Unspecified) >> $from = [System.TimeZoneInfo]::FindSystemTimeZoneById($FromTimeZone) >> $to = [System.TimeZoneInfo]::FindSystemTimeZoneById($ToTimeZone) >> $utc = [System.TimeZoneInfo]::ConvertTimeToUtc($DateTime, $from) >> [System.TimeZoneInfo]::ConvertTime($utc, $to) Thursday, March 28, 2019 8:35:00 AM