This was fun. Below is a brainstorm of how you could get to your goal -- there are some flaws that need to be fixed (they would
also be fun to figure out), such as:
If it's the 1st of the month, you'll need to change the month value (e.g. 08012014 to 07312014). You'll also need to factor in
months with varying total number of days (e.g. 08012014 to 07312014, 07012014 to 06302014, 03012014 to 02282014).
C:\example>echo %date%
Sat 08/16/2014
C:\example>echo %date:~-10,2%%date:~-7,2%%date:~-4,4%
08162014
C:\example>set /a today=%date:~-7,2%
16
C:\example>set /a yesterday=%today%-1
15
C:\example>echo %date:~-10,2%%yesterday%%date:~-4,4%
08152014
C:\example>set ydate=%date:~-10,2%%yesterday%%date:~-4,4%
C:\example>mkdir %ydate%
C:\example>dir
Volume in drive C has no label.
Volume Serial Number is 8E75-333E
Directory of C:\example
08/16/2014 07:29 PM .
08/16/2014 07:29 PM ..
08/16/2014 07:29 PM > > 08152014
0 File(s) 0 bytes
3 Dir(s) 938,853,076,992 bytes free
C:\example>