Skip navigation
Q. How can I quickly check the time in a PowerShell window?

Q. How can I quickly check the time in a PowerShell window?

Q. How can I quickly check the time in a PowerShell window?

A. The easiest way is to run:

[datetime]::Now

Note you can also run the below to get the UTC time.

[datetime]::UtcNow

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish