To know time and date from command line you can use the utility now.exe which is available in windows resource kit tools. We have windows in-built commands date and time for the same purpose but they show date and time separately and they wait for the user input to exit after printing date/time.
d:\Program Files\Windows Resource Kits\Tools>now
Sat May 15 18:35:36 2010