title: String to DateTime conversion in PowerShell
body: <p>I am trying to convert the time stamp value of a file to date time for comparing two date time differences.</p>
  
  <p>The data would be coming in format <strong>24122014_022257</strong>. I need to convert this into date time so that I can compare the values:</p>
  
  <pre><code>$usdate="24122014_022257"   
  $dateParts = $usdate -split "_"   
  $final = $dateparts[0] + $dateParts[1]   
  </code></pre>
  
  <p>How can I do it?</p>