取得日期語法

@ECHO OFF

for /F "tokens=1-4 delims=/ " %%i in ('date /t') do (
set DayOfWeek=%%l
set Month=%%j
set Day=%%k
set Year=%%i

set Date=%%i-%%j-%%k
)

ECHO Date is %Date%

(Visited 28 times, 1 visits today)