@echo offset y=%date:~0,2%set m=%date:~5,2%set d=%date:~8,2%set /a m-=1if %m%==0 set m=12&set /a y-=1echo 上个月日期是%y%-%m%=%d%