DOS+Batch+File+Output+the+Date+in

DOS Batch File Output the Date in

There are two ways to output the current date in a DOS batch file under Windows XP.

First use the DATE command with the ʺ/tʺ parameter:

e.g.:‐ **C:\>date /t**

Windows XP comes built‐in with a **%date% environment variable.**

e.g.:‐


 * C:\>echo %date%**