批处理,生成当前时间

@echo %date%
@Set Year=%date:~0,4%
@Set Month=%date:~5,2%
@Set Day=%date:~8,2%

@Set CurrentDate=%Year%-%Month%-%Day%

@echo %CurrentDate%

pause

posted on   思静  阅读(347)  评论(0编辑  收藏  举报
努力加载评论中...

点击右上角即可分享
微信分享提示