HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

date — Display or set the system date. More information: <https://learn.microsoft.com/windows-server/admini

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandclidatesetdisplaysystem
windows

Problem

How to use the date command: Display or set the system date. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/date>.

Solution

date — Display or set the system date. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/date>.

Display the current system date and prompt to enter a new date (leave empty to keep unchanged):
date


Display the current system date without prompting for a new date:
date /t


Change the current system date to a specific date:
date {{month}}-{{day}}-{{year}}

Code Snippets

Display the current system date and prompt to enter a new date (leave empty to keep unchanged)

date

Display the current system date without prompting for a new date

date /t

Change the current system date to a specific date

date {{month}}-{{day}}-{{year}}

Context

tldr-pages: windows/date

Revisions (0)

No revisions yet.