title: How to get yesterday's date in a particular format?
body: <p>I need to set Today and yesterday's date in a variable in a fixed format <code>YYYYMMDD</code>.</p>
  
  <p>For today date, when i did</p>
  
  <pre><code>SET TODAY=%date:~10,4%%date:~4,2%%date:~7,2%
  </code></pre>
  
  <p>it worked and displayed '20190426'. 
  But how to set yesterday's date so I get it in the format - <code>20190425</code> ?</p>