Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Latest posts

Use PowerShell to Convert Date Formats Easily
Aug 24, 2011
Post comments count 0
Post likes count 0

Use PowerShell to Convert Date Formats Easily

Doctor Scripto
Doctor Scripto

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...