title: PowerShell: Comparing dates
body: <p>I am querying a data source for dates. Depending on the item I am searching for, it may have more than date associated with it.</p>
  
  <pre><code>get-date ($Output | Select-Object -ExpandProperty "Date")
  </code></pre>
  
  <p>An example of the output looks like:</p>
  
  <pre><code>Monday, April 08, 2013 12:00:00 AM
  Friday, April 08, 2011 12:00:00 AM
  </code></pre>
  
  <p>I would like to compare these dates and return which one is set further out into the future.</p>