title: Windows batch: formatted date into variable
body: <p>How do I save the current date in YYYY-MM-DD format into some variable in a Windows .bat file?</p>
  
  <p>Unix shell analogue:</p>
  
  <pre><code>today=`date +%F`
  echo $today
  </code></pre>