摘要: @echo offrem 计算指定天数之前的日期set DaysAgo=10rem 假设系统日期的格式为yyyy-mm-ddcall :DateToDays %date:~0,4% %date:~5,2% %date:~8,2% PassDaysset /a PassDays-=%DaysAgo%call :DaysToDate %PassDays% DstYear DstMonth DstDayset DstDate=%DstYear%-%DstMonth%-%DstDay%echo %DaysAgo%天的日期是%DstDate%pausegoto :eof:DateToDays %yy%
阅读全文
posted @ 2011-12-31 12:10 茄子_2008 阅读(16) 评论(0)
编辑