c#中WMI 中的日期和时间转为本地时间
取得的值:CreationDate:20170122084915 .713600+480
转:
var objQuery = new ObjectQuery("select * from Win32_Process WHERE ProcessID = " + process.Id);
var moSearcher = new ManagementObjectSearcher(objQuery);
var gets = moSearcher.Get();
foreach (ManagementObject mObj in gets)
{
DateTime creationDate = ManagementDateTimeConverter.ToDateTime(mObj["CreationDate"].ToString());
}