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?
Delphi – How to convert WMI DateTime to standard DateTime
datetimedelphiwmi
Related Topic
- Python – How to print a date in a regular format
- Mysql – Should I use the datetime or timestamp data type in MySQL
- Python – How to get the current time in Python
- Python – Converting string into datetime
- Python – Convert date to datetime in Python
- Python – How to convert a datetime to date
- Python – How to make a timezone aware datetime object in Python
- Javascript – How to sort an object array by date property
Best Answer
Instead of parsing and extracting the values manually (how the accepted answer suggest), you can use the
WbemScripting.SWbemDateTime
object.check this sample
For more info about this topic you can read this artile
WMI Tasks using Delphi – Dates and Times