title: Server uptime, need days only..Powershell
body: <p>I currently have a script to return server up-time that is operating correctly, but when I receive a value for server up-time it includes days, minutes, and seconds. </p>
  
  <p>Here is the line from the script that I think needs to be modified:</p>
  
  <pre><code>$os=Get-WmiObject win32_operatingsystem
  $uptime=((get-date) - ($os.ConvertToDateTime($os.lastbootuptime))).tostring() 
  </code></pre>
  
  <p>I have tried looking up options to only return days; but have been unable to find one. </p>
  
  <p>Is this possible?</p>