Web Hosting

DOS command for Time and Date

By admin

Unless you use DOS commands frequently even the simple commands become forgotten :-) .

There are the easiest commands like TIME and DATE which we can all forget.

DOS TIME COMMAND

To set the time (prompting for new time): TIME

To show the displays current system time:  TIME/T

To show the time in the FORMAT HH:MM:SS:

echo %TIME%”

DOS DATE COMMAND

To set the DATE (prompting for new DATE): DATE

To show the displays current system DATE:  DATE/T

To show the time in the date FORMAT:-

echo %DATE%”

Tags:

Comments are closed.