I was doing some work with Service Manager and Orchestrator over the last few weeks and ran into a situation where I had to convert a time in a database to another time zone in PowerShell. I found lots of examples on doing this from the current time to another time zone but I didn’t run across anything that converted a datetime that isn’t current from one time zone (not necessarily where I’m running the script from) to another time zone. I decided to write something up and figured it might be useful for the community.
↧