如何将WMI DateTime转换为标准DateTime? [英] How to convert WMI DateTime to standard DateTime?

查看:161
本文介绍了如何将WMI DateTime转换为标准DateTime?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从WMI( Win32_OperatingSystem.InstallDate )中读取安装日期。返回值如下所示:20091020221246.000000 + 180。如何获得有效的日期?

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?

推荐答案

也许这有助于: http://technet.microsoft.com/en-us/library/ee156576.aspx

这篇关于如何将WMI DateTime转换为标准DateTime?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆