title: Comparing dates without time
body: <p>I have the following code that compares two dates. Is it possible to ignore the time that comes with <code>$ExpirationDate</code> and <code>$EndDate</code>?</p>
  
  <pre><code>if(((get-date $ExpirationDate).Date -gt (get-date $EndDate).Date) -And $userAccountControl -eq "512")
  </code></pre>