我有一个批处理文件,可以很好地创建今天的日期。现在我需要更新它以显示明天的日期。任何帮助深表感谢:
@echo off
set TimeStamp=12:00:00
FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T') DO SET CDATE=%%B
FOR /F "TOKENS=1,2 eol=/ DELIMS=/ " %%A IN ('DATE/T') DO SET mm=%%B
FOR /F "TOKENS=1,2 DELIMS=/ eol=/" %%A IN ('echo %CDATE%') DO SET dd=%%B
FOR /F "TOKENS=2,3 DELIMS=/ " %%A IN ('echo %CDATE%') DO SET yyyy=%%B
SET date="%yyyy%-%mm%-%dd% %TimeStamp%"
echo %date%