title: Windows 7 batch file date Issue
body: <p>I worked in windows XP and moved to windows 7 now. Used batch files to build.  Now it doesn't work.</p>
  
  <p>Windows XP:</p>
  
  <pre><code>echo %DATE:~4,2%-%DATE:~7,2%-%DATE:~10,4%
  
  02-10-2011
  </code></pre>
  
  <p>Windows-7:</p>
  
  <pre><code>echo %DATE:~4,2%-%DATE:~7,2%-%DATE:~10,4%
  
  2--01-
  </code></pre>
  
  <p>Please help. Thanks.</p>