PowerShell Date Time

To play with Date and Time with PowerShell, the main Cmdlet to use is Get-Date.

TechNet: https://technet.microsoft.com/en-us/library/hh849887.aspx

The Get-Date cmdlet gets a DateTime object that represents the current date or a date that you specify. It can format the date and time in several Windows and UNIX formats. You can use Get-Date to generate a date or time character string, and then send the string to other cmdlets or programs.