views:

216

answers:

3

I'm trying to read the install date from WMI (Win32_OperatingSystem.InstallDate). The return value looks like this: 20091020221246.000000+180. How can I get a valid Date?

+1  A: 

maybe this helps: http://technet.microsoft.com/en-us/library/ee156576.aspx

Joe Meyer
+2  A: 

MagWMI from Magenta Systems contains MagWmiDate2DT() that does this.

http://www.magsys.co.uk/delphi/magwmi.asp

davea
A: 
System.Management.ManagementDateTimeConverter.ToDateTime
Khalid Rahaman