
SUMMARY: Two options for outputting the current date in a DOS batch file running underneath Windows XP.
Here are two ways to output the current date in a DOS batch file under Windows XP.
Use the DATE command with the "/t" parameter:
C:\>date /t
Windows XP comes built-in with a %date% environment variable.
C:\>echo %date%
Get E-Mail When New Tips are Online
Return to the Windows XP and DOS page.
New in MalekTips: