Powershell - Get System Time
Cmdlet
Get-Date cmdlet is used to get System Date-Time.
Example 1
In this example, we're using Get-Date without any parameter
Type the following command in PowerShell ISE Console
Get-Date
Output
You can see following output in PowerShell console.
Get-Date Wednesday, April 04, 2018 5:24:51 PM
Example 2
In this example, we're using -DisplayHint to print only Time.
Type the following command in PowerShell ISE Console
Get-Date -DisplayHint Time
Output
You can see following output in PowerShell console.
Get-Date -DisplayHint Date 5:26:36 PM
powershell_dates_timers.htm
Advertisements