date command window

C++
date /t	#To get date
date	#To get date and edit it
Source

Also in C++: