|
本帖最后由 chiannet 于 2023-9-7 00:31 编辑
- @Echo Off
- For /f "Tokens=1-3 Delims=/ " %%I In ('Echo %Date:-=/%') Do Set TT=%%I-%%J-%%K
- Call :DateDiff %TT% -2 T
- echo 前天%T%
- Call :DateDiff %TT% -100 T
- echo 100天前是%T%
- Call :DateDiff %TT% 9999 T
- echo 9999天后的日期%T%
复制代码 借花献佛 |
|