In console CMD.EXE, or Powershell to output or display the date, there is no expert knowledge required, here are short example how to do it!
For the CMD, it is the TIME command and the DATE command for the date, after confirming the DATE or TIME command, the time or date does not change.
For Power Shell, there are two commands SET-DATE and GET-DATE
To console CMD.EXE, or Powershell to output or display the date, there is no expert knowledge, here are short examples on how to achieve it!
1.) ... Query the console of date and time!
2.) ... The query of date and time with Powershell!
Microsoft Windows [Version 6.3.9600] (c) 2013 Microsoft Corporation. All rights reserved. C:\Users\Administrator>date The current date is: Sat 09/16/2017 Enter the new date: (mm-dd-yy) C:\Users\Administrator>time The current time is: 11:24:59.91 Enter the new time: C:\Users\Administrator>
Check more info on date and time: https://www.colorconsole.de/PS_Windows/en/Get-Date.htm
More information on date and time: https://www.colorconsole.de/PS_Windows/en/Set-Date.htm
Windows PowerShell Copyright (C) 2014 Microsoft Corporation. All rights reserved. PS C:\Users\Administrator> get-date Saturday, September 16, 2017 11:26:42 AM PS C:\Users\Administrator> get-date -uformat "%Y / %m / %d / %A / %Z" 2017 / 09 / 16 / Saturday / +02 PS C:\Users\Administrator> get-date -format g 9/16/2017 11:29 AM PS C:\Users\Administrator>
FAQ 16: Updated on: September 18th 2017 19:00