title: How to get a UNIVERSAL Windows batch file timestamp
body: <p>I'm having trouble generating a timestamp in a Windows batch file, because I get diferent date formats on different Windows versions.</p>
  
  <p>My machine:</p>
  
  <pre><code>&gt;echo %date%
  &gt;Tue 11/17/2009
  </code></pre>
  
  <p>Friends machine:</p>
  
  <pre><code>&gt;echo %date%
  &gt;11/17/2009
  </code></pre>
  
  <p>I guess there has to be some way of getting the date (11/17/2009) from both strings using for /f. I've been trying and googling and can't find the answer.</p>
  
  <p>Is there another way to get a timestamp without using %date%?</p>