title: Compare 2 dates in a Windows batch file
body: <p>How is it possible to compare 2 dates in batch files?
  This:</p>
  
  <pre><code>if %%newdate geq %olddate%  _do smth_
  </code></pre>
  
  <p>does not work. </p>
  
  <p>In this case I have that<br> <code>27.05.2013</code> is <em>greater than</em> <code>15.07.2013</code> and<br> <code>14.07.2013</code> is <em>less than</em> <code>15.07.2013</code></p>
  
  <p>Zhenya</p>