time command windows

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

Also in C++: