Oh, and if you want it converted to a date:
sHexNum = "3ec0479d"
WScript.Echo DateAdd("s", Eval("&H" & sHexNum), "1-Jan-70 12:00am")
Best regards
Johnny Nielsen
Quote:
> sHexNum = "3ec0479d"
> WScript.Echo Eval("&H" & sHexNum)
> Best regards
> Johnny Nielsen
> > Hello,
> > I need to write a VBS to extract and convert the InstallDate value from:
> > HKLM\Software\Microsoft\WindowsNT\CurrentVersion
> > This Date is in HEX like (3ec0479d). The Decimal value would be
> > (1052788637) this is the number of seconds since 12:00am January 1,
1970.
> > I know how to retrieve the value but converting it is the problem I'm
> > having. Please Help!!!
> > Thanks
> > Juan Carlos Mu?oz