title: Setup default date format like yyyy-mm-dd in Powershell?
body: <p>A simple &amp; short question:</p>
  
  <p>How can I setup a <strong>default</strong> date format in powershell like yyyy-mm-dd ? so any date output will be like this format?</p>
  
  <p>or How to setup a date format <strong>globally</strong> in one script ?</p>
  
  <p>Is there a way to output date only without time? when I output LastWriteTime, Default is</p>
  
  <p><code>13-03-2014 14:51</code></p>
  
  <p>I only need <code>13-03-2014</code> but <code>14:51</code>. </p>