title: Date conversion yyyymmddhhmm+000
body: <p>I was trying to fetch the details of SCCM MP from WMI by Powershell.
  Thing is data i can fetch from WMI but date format is different and i am not able to convert. May be lacking some knowledge.</p>
  
  <pre><code>$query = Get-WmiObject -Query "SELECT * FROM SMS_MPInformation " -Namespace root\ccm\LocationServices -ComputerName "test_vm"
  
  $MP = $query.MP
  $Sitecode = $query.SiteCode
  $MPLastRequestTime = $query.MPLastRequestTime
  $MPLastUpdateTime = $query.MPLastUpdateTime
  </code></pre>
  
  <p>The output I am getting is ok but format of the date is a bit different. </p>
  
  <pre><code>$MPLastRequestTime = 20191008000158.927000+000
  </code></pre>
  
  <p>Actually it should be like this. </p>
  
  <p><strong>MPLastRequestTime: 08-Oct-2019 00:01</strong></p>
  
  <p>Can anyone advise me how can I convert it in above format. WMIExplorer tool is able to convert it, so I know there must be some way.</p>