Welcome! Log In


[CMD] DATE & TIME VARIABLES
@echo off
rem Date and Time
for /f "tokens=1-3 delims=/- " %%a in ('date /t') do set XDate=%%a-%%b-%%c

for /f "tokens=1-2 delims=: " %%a in ('time /t') do set XTime=%%a.%%b

echo %XDate% %XTime%
Sorry, only registered users may post in this forum.

Click here to login