The “Hey, Scripting Guys!” blog has been retired. There are many useful posts in this blog, so we keep the blog here for historical reference. However, some information might be very outdated and many of the links might not work anymore.
New PowerShell content is being posted to the PowerShell Community blog where members of the community can create posts by submitting content in the GitHub repository.
Scripting Blog [archived]
Formerly known as the "Hey, Scripting Guy!" blog
Latest posts

Use PowerShell to Convert Date Formats Easily

Summary: Microsoft Scripting Guy Ed Wilson discusses four different techniques for using Windows PowerShell to convert date formats. Hey, Scripting Guy! I have a problem. Although I am sure you hear this a lot, this problem is causing me a major problem at work. Here is the deal. We are a large company and we have operations both in the United States and in Germany. The problem is that in the United States, as you are well aware, we write the date like this: 8/24/11. Or we write it like this: 8/24/2011. We always list the month, then the day, and then the year. In Germany, however, they seem to write it da...