Retrieve the current date and time:
PS C:\> $now=Get-Date -format "dd-MMM-yyyy HH:mm"
Retrieve the current date and time, display as a General short date/time:
PS C:\> get-date -format g
Read full article from Get-Date | PowerShell | SS64.com
Retrieve the current date and time:
PS C:\> $now=Get-Date -format "dd-MMM-yyyy HH:mm"
Retrieve the current date and time, display as a General short date/time:
PS C:\> get-date -format g
Read full article from Get-Date | PowerShell | SS64.com
No comments:
Post a Comment