title: Batch File timestamp for today and tomorrow
body: <p>I am trying to make a batch file that creates a new folder named after tomorrow's date, but I also need it to grab a file from a folder with today's date. My code is written so it only sets it by tomorrows date when I put %mm%%dd%%yy%. I need help editing it so it grabs both somehow. Here is my code</p>
  
  <pre><code>@echo off
  
  setlocal enableextensions disabledelayedexpansion
  
  rem Retrieve data
  for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "dt=%%a" 
  set "YY=%dt:~2,2%" 
  set "YYYY=%dt:~0,4%"
  set "MM=%dt:~4,2%"
  set "DD=%dt:~6,2%"
  set "HH=%dt:~8,2%"
  set "Min=%dt:~10,2%"
  set "Sec=%dt:~12,2%"
  
  rem Remove padding from date elements and increase day
  set /a "y=%YYYY%", "m=100%MM% %% 100", "d=(100%DD% %% 100)+1" 
  rem Calculate month length
  set /a "ml=30+((m+m/8) %% 2)" &amp; if %m% equ 2 set /a "ml=ml-2+(3-y %% 4)/3-(99-y %% 100)/99+(399-y %% 400)/399"
  rem Adjust day / month / year for tomorrow date
  if %d% gtr %ml% set /a "d=1", "m=(m %% 12)+1", "y+=(%m%/12)"
  
  rem Pad date elements and translate again to original variables
  set /a "m+=100", "d+=100"
  set "YYYY=%y%"
  set "YY=%y:~-2%"
  set "MM=%m:~-2%"
  set "DD=%d:~-2%"
  
  echo Tomorrow: %YYYY% / %MM% / %DD%
  
  mkdir "C:\Users\name\Desktop\DNFB %mm%%dd%%yy%\"
  mkdir "C:\Users\name\Desktop\DNFB %mm%%dd%%yy%\DNFB"
  
  xcopy /s "C:\Users\name\Desktop\"DNFB %mm%%dd%%yy%"\file*.xls" "C:\Users\name\Desktop\DNFB %mm%%dd%%yy%\"
  </code></pre>
  
  <p>xcopy /s "C:\Users\name\Desktop\"DNFB %mm%%dd%%yy%"(TODAY)\file*.xls" "C:\Users\name\Desktop\DNFB %mm%%dd%%yy%(TOMORROW)\"
  -Grabs a file from  a folder labeled "DNFB 010815" and paste it onto a folder "DNFB 010915"(tomorrows)</p>
  
  <p>Is it even possible? Or is it too conflicting. Thanks</p>