Scripting Blog [archived]

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

Manipulating Dates Returned by Windows Management Instrumentation (WMI)

  (image) Hey, Scripting Guy! I need to understand how to work with dates that I receive from Windows Management Instrumentation (WMI). I remember in VBScript I had to use a function I got from the Scripting Guys that did string manipulation to convert the WMI date to a “normal” date. I guess that is okay, but I had no idea ...

How to Express Dates in Different Fashions with Windows PowerShell

  (image) Hey, Scripting Guy! I need to use Windows PowerShell to be able to parse dates. We have dates that are displayed in different ways. Some are day/month/year, others are month/day/year, and still others are year/month/day. I need to be able to express these different date configurations with a minimal amount of monkeying around...