In powershell, if i do (gwmi win32_bios).releasedate | convertto-json
, I get "20171221000000.000000+000"
, which makes sense - Dec. 21, 2017.
But if I take the equivalent element in the CimInstanceProperties list, e.g.,
$a = (Get-CimInstance cim_bioselement).CimInstanceProperties | `
where-object {$_.name -eq 'ReleaseDate'}
and then inspect $a.value
, I get
Wednesday, December 20, 2017 6:00:00 PM
but doing $a | ConvertTo-Json
yields
{
"Name": "ReleaseDate",
"Value": "\/Date(1513814400000)\/",
"CimType": 13,
"Flags": "Property, ReadOnly, NotModified",
"IsValueModified": false
}
I'm guessing somehow those two dates are equivalent, but I don't have any immediate insight into what the format is for the CIM value after jsonification. I can grab a few more bios dates from different machines and start analyzing, but was curious if anyone knew what the format was "off the top of their head".
The reason I would like to understand the format is because it is what I get if I generically try to get all of the properties and jsonify, via
(Get-CimInstance cim_bioselement).CimInstanceProperties | convertto-json