title: How to get yesterday's date in batch file?
body: <p>I use below code to get today's date and month (0411)</p>
  
  <pre><code>For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set FileNameDatePrefix=%%a%%b)
  </code></pre>
  
  <p>But I want to get yesterday's date in <code>FileNameDatePrefix</code>.</p>
  
  <p>I am not sure how we can do this. Any suggestions are welcome.</p>