Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Converting WMI Date and Time

$
0
0

I’m currently trying to convert a date and time value returned from a WMI query to something more readable. I can accomplish this easily when one object is returned using [System.Management.ManagementDateTimeconverter]::ToDateTime. For example if my query returns just 20130807000004.000000+000 I can convert that. However, my current query returns multiple dates in that format. I want to convert them to a more readable format. I’m having trouble with this syntax. I’m thinking that I need a Foreach loop, but am stuck on that formatting as well. Any suggestions are appreciated.


Viewing all articles
Browse latest Browse all 13067

Trending Articles