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.
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
4.5 ★ | 2 Vote
You should read it
May be interested
- Dcgpofix command in Windowsthe dcgpofix command recreates the default group policy objects (gpo) for a domain.
- The pubprn command and the pushprinterconnections command in Windows(applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012)
- Del command in Windowsthe del command deletes one or more files. this command is the same as the eraser command.
- Qappsrv (query termserver) command in Windows(applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012)
- Use a battery charger like 'the beard that he has on her chin'each device like smartphone, tablet, laptop has a separate battery charger. but do you need all these chargers? can you use a charger for multiple devices? is this dangerous to make 'that beard that plugs her chin'? this article will solve these problems for you.
- Defrag command in Windowsthe defrag command locates and merges fragmented files on local drives to improve system performance. local administrator, or equivalent, is the minimum necessary requirement to run this command.