
- PowerShell Tutorial
- PowerShell - Home
- PowerShell - Overview
- PowerShell - Environment Setup
- PowerShell - Cmdlets
- PowerShell - Files and Folders
- PowerShell - Dates and Timers
- PowerShell - Files I/O
- PowerShell - Advanced Cmdlets
- PowerShell - Scripting
- PowerShell - Special Variables
- PowerShell - Operators
- PowerShell - Looping
- PowerShell - Conditions
- PowerShell - Array
- PowerShell - Hashtables
- PowerShell - Regex
- PowerShell - Backtick
- PowerShell - Brackets
- PowerShell - Alias
- PowerShell Useful Resources
- PowerShell - Quick Guide
- PowerShell - Useful Resources
- PowerShell - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Powershell - Get System Date
Cmdlet
Get-Date cmdlet is used to get System Date.
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 Date.
Type the following command in PowerShell ISE Console
Get-Date -DisplayHint Date
Output
You can see following output in PowerShell console.
Get-Date -DisplayHint Date Wednesday, April 04, 2018
powershell_dates_timers.htm
Advertisements