Question: I am generating a report in PS and everything works fine, but when I try to use **ConvertToDateTime** to make the date readable it comes out blank? But only on Get-WmiObject **Win32\_Product** others like Win32\_Operatingsystem seem to come out fine.

```
$Install = @{n="Installed";e={$_.ConvertToDateTime($_.InstallDate)}}
$frag14 = Get-WmiObject Win32_Product -ComputerName $name | Select Name,Version,PackageName,$Install,Vendor | Sort Name | 
ConvertTo-html -Fragment 

```

Answer: 
InstallDate is just a string, it's a CIM based date string. Try this:

```
$Install = @{n="Installed";e={[DateTime]::ParseExact($_.InstallDate,'yyyyMMdd',$null)}}

```
You will not get install date in win32\_product class, it is a known bug.