title: powershell : how to format get-date to string and remove 0's?
body: <p>I'm attempting to eliminate leading any leading zeroes in my date when I run the get-date cmdlet by trying: </p>
  
  <pre><code>$filedate = get-date -uformat "%m-%d-%Y" 
  $filedate = $filedate.ToString().Replace("0", "")
  </code></pre>
  
  <p>this returns "01-04-2008"</p>
  
  <p>I want to the output to be "1-4-2008"</p>
  
  <p>any ideas on another way of doing this?</p>
  
  <p>thanks in advance</p>