title: Trying to change the output of Get-Date into an integer?
body: <p>I'm trying to take output from Date-Time in Powershell and change it into an integer (rather than a date-time object or a string) so I can subtract it from another date later.</p>
  
  <p>I have two variables:</p>
  
  <pre><code>$nowBase = Get-Date
  </code></pre>
  
  <p>and</p>
  
  <pre><code>$loopTime = Get-Date # which will be used later for the aforementioned math.
  </code></pre>
  
  <p>Thank you for any help.</p>