You can use the date and time commands on a Microsoft Windows system to display current date and time information:
C:\Users\Lila>date /t Sat 08/26/2017 C:\Users\Lila>time /t 02:07 PM C:\Users\Lila>
Placing /t
after the commands results in the current date
and time information being displayed without an accompanying prompt to change
the current settings.
You can display the information in a different format using the Windows Management Instrumentation Command-line (WMIC) command shown below:
C:\Users\Lila>wmic path win32_utctime get * /format:list Day=26 DayOfWeek=6 Hour=18 Milliseconds= Minute=16 Month=8 Quarter=3 Second=19 WeekInMonth=4 Year=2017 C:\Users\Lila>
[ More Info ]