title: %DATE% Batch Variable not working in Windows 10
body: <p>%DATE% Batch Variable not working in Windows 10</p>
  
  <p>I created a batch file:</p>
  
  <pre><code>@ECHO OFF
  C:
  MKDIR C:\BACKUP
  CD C:\BACKUP
  ECHO backing up, plz wait...
  MKDIR bkup-%date%
  cd bkup-%date%
  </code></pre>
  
  <p>But I get an error saying: "The syntax of the command is incorrect." error.</p>
  
  <p>Please help me, thanks.</p>