Summary: Learn how to display the current time by using Windows PowerShell.
How can I use Windows PowerShell to display the time with the hour, minute, and seconds?
Use the ToString method from the Get-Date cmdlet, and use the long time pattern format
string (see Standard Date and Time Format Strings) to overload the method, for example:
(get-date).ToString('T')
0 comments