The date command in Windows
The date command displays or sets the system date. If used without parameters, the date command displays the current system date setting and prompts you to enter a new date.
The date command displays or sets the system date. If used without parameters, the date command displays the current system date setting and prompts you to enter a new date.
For an example of how to use this command, please see the Example below.
Syntax date command
date [/t | ]
Parameters
The Description parameter is set, in which Month is the month (one or two digits), Day is the date (one or two digits) and Year is the year (two or four digits). / t Display the current date without prompting the user to enter a new date. /? Show help at the command prompt.Note
- To change the current date, you must have admin login information.
- You must separate the values for Month , Day and Year by dots (.), Hyphens (-) or slashes (/).
- Valid Month values are from 1 to 12.
- Valid Day value is from 1 to 31.
- Valid Year values are from 00 to 99 or 1980 to 2099. If you use two digits, the values from 80 to 99 correspond to the years 1980 to 1999.
For example
If the command extensions are enabled, to display the current system date, enter:
date /t
To change the current system date to August 3, 2007, you can enter any of the following information:
date 08.03.2007 date 08-03-07 date 8/3/07
To display the current system date, followed by a prompt to enter a new date, enter:
The current date is: Mon 04/02/2007 Enter the new date: (mm-dd-yy)
To keep the current date and return to the command prompt, press ENTER. To change the current date, enter the new date and then press ENTER.
See more:
- Cscript command in Windows
- Compact command in Windows
- The dfsrmig command in Windows
You should read it
- How to display the date and time in Linux Terminal
- Command at in Windows
- How to Change the Computer Time and Date Using the Command Prompt
- Del command in Windows
- DATE function - The date function in Excel
- How to fix date errors when copying to another Excel file
- How to fix the date #VALUE error in Excel
- Doskey command in Windows
- Cmd command in Windows
- Date and Time in C ++
- Fc command in Windows
- The echo command in Windows
Maybe you are interested
How to use Photoshop CS5 - Part 15: Remove wrinkles with the Healing Brush tool Block strangers to contact you on Facebook Van prayed to Than Tai on the 10th of every month 40/30/20/10 Rule: The most scientific time management method There was a year when the Earth had no summer and the world history was changed 10 types of food enhance men's vitality