Search notes:

cmd.exe - date

date prints the current date and prompts for entering a new date.
In order to just print the date, /t is used:
C:\> date /t

C:\>date /t
Fri 12/20/2019
The current date is also stored in the pseudo (or dynamic) variable %date%:
C:\> echo %date%
Fri 12/20/2019

See also

time
The shell command date
cmd.exe: Built-in commands

Index