Note that your short date format on the server should support yyyy. Otherwise, I don't see a way to retrieve the yyyy format. And also note that this was a script I used a while ago to create folders which were dumped with FTP files. Test this and adapt as required.
@echo off
set /a day=%date:~0,2%
set /a mon=%date:~3,2%
set /a year=%date:~6,4%
set mon=0%mon%
:loop
set /a day+=1
if %day% gtr 31 (
set day=1
set /a mon+=1
if %mon% gtr 12 (
set mon=1
set /a year+=1
)
)
xcopy /d:%mon%-%day%-%year% /h /l "%~f0" "%~f0\" >nul 2>&1 || goto loop
echo %year%%mon%%day%
md New_%year%%mon%%day%
Hope this helps.