在注册表中的Word MRU列表中,日期时间似乎存储为T01D163DE49AED860
。
知道如何将其转换为日期时间吗?
最佳答案
这是一个十六进制注册表值。 key 位于此处:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsBackup\Status
Dim regTime As Long = CLng(Registry.LocalMachine.OpenSubKey( _
"SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsBackup\Status").GetValue( _
"LastSuccess"))
Dim dt As DateTime = DateTime.FromFileTimeUtc(regTime)
Me.Text = dt.ToLocalTime.ToString
关于c# - 将 T01D163DE49AED860 转换为日期时间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35333199/