Dim xml, AttrValue,HardwareID,AtDate,AtTime,Imput
Set xml = WScript.CreateObject("MSXML2.DOMDocument")
xml.load("sample.xml")
HardwareID = xml.getElementsByTagName("Computer")(0).text
AttrValue = xml.getElementsByTagName("TimeCreated")(0).getAttribute("SystemTime")
AttrValue = FormatDateTime(replace(mid(AttrValue,1,19),"T"," "))
AttrValue = DateAdd("h", 9, AttrValue )
msgbox AttrValue
AtDate = CDate(mid(AttrValue,1,10))
AtTime = CDate(mid(AttrValue,12,19))
Imput = Msgbox("OK?" & vbCr & vbCr & vbCr & "Date:"& AtDate & vbCr & "Time:" & AtTime)