Search This Blog


Saturday, November 3, 2012

Meet The Command Prompt - The Date Command

This is a fairly simple command to use. The date command simply displays the current date. When this command is run without arguments, It first displays the current date, then prompts for a new date to be entered. You can simply press enter to keep the current date.

When you don't want to be prompted for a new date, you can use the /t switch. This switch when used will simply display the current date

date /t        -    displays the current date
date        -    displays the current date and prompts for a new one
date 08/13/1984    -    sets the current date to the specified date

The Date Command

The date should be entered in the format mm-dd-yy (the month first, the day in the middle, then the year).