snippetbashTip
date — Display or set the system date. More information: <https://learn.microsoft.com/windows-server/admini
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):
dateDisplay the current system date without prompting for a new date:
date /tChange 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)
dateDisplay the current system date without prompting for a new date
date /tChange the current system date to a specific date
date {{month}}-{{day}}-{{year}}Context
tldr-pages: windows/date
Revisions (0)
No revisions yet.