bat中如何取得前一天的时间

2024-12-02 11:50:51
推荐回答(2个)
回答1:

@echo off
echo Wscript.echo dateadd("d",-1,date)>vbs.vbs
for /f %%a in ('cscript //nologo vbs.vbs') do del vbs.vbs&&echo %%a
pause

回答2:

strtotime("Y-m-d","-days"),是不是这个啊