How to Display or Set the Date and Time using Command Prompt in Windows


You can change or display the date and time of your computer using CMD (command prompt) in Windows. If you are not able to change the date and time in normal way in your computer because of any reason, then you can use the Command Prompt for that. You can also amaze others by using this feature of Command Prompt.The Command prompt provides access to many commands in Windows, will use some of the commands to display or change Date & Time.

Display Date & Time in Command Prompt

 1. Open Command Prompt ( Press 'Windows Key + R' and type 'cmd' into the Run field, and press 'Enter' to open the 'Command Prompt' or you can click on 'Start' and search 'cmd' and open cmd/command prompt from search result.)


 2. Type the commands given below into the command prompt-

➤ To display Date, use ➛  DATE /T

➤ To display Time, use ➛  TIME /T  or use ➛  ECHO:| TIME  ( to include seconds and hundredths of a second)

➤ To display Date & Time Together, use ➛  DATE /T && TIME /T

 3. After typing the command, press Enter. And Command prompt will display current Time or Date according to your command.
Below image is a example, if anyone use command  date/t


 4. So, to display date and time in cmd, use the commands given above.

Change or Set Date & Time using Command Prompt

 1. Open Command Prompt. ( Click on 'Start' and search 'cmd' and open cmd/command prompt from search result.)

 2. To set the Date and Time, type the commands given below into the command prompt and then press Enter.

➤ To set the Date, use ➛  Date


➜ When you use the above command and press Enter, command prompt will show the current date and will ask you to enter the new date. Type the new date in the format it asked... <date-month-year> then press Enter to save it.

➤ To set the Time, use ➛  Time


➜ When you use the Time command, the command prompt will show the current time and will ask you to enter the new time. Type the time <HH:MM> in the cmd and press Enter to save it.

Post a Comment

1 Comments

  1. I truly enjoy studying on this internet site, it contains good content.

    ReplyDelete