12/12/29 14:37:14.80 XX8xjG1I
for %%i in (1 3 5 7 8 10 12) do (set mm_dd[%%i]=31)
for %%i in (4 6 9 11) do (set mm_dd[%%i]=30)
echo set ld=%%mm_dd[%lmm%]%%>tmp.bat
call tmp.bat
del tmp.bat
if %yy%%mm%==201202 (set /a ld+=1)
if %lyy% lss 2009 goto TAIL
if %lyy%%mm%==200901 goto TAIL
set d=0
if %lyy%%mm%==200902 (set d=8)
:LOOP
if %d% geq %ld% goto TAIL
set /a d+=1
set dd=%d%