November 2018
Intermediate to advanced
566 pages
17h 15m
English
The System.DateTime class in .NET packs a good enough amount of properties and methods. The Get-Date cmdlet leverages these properties and methods by means of encapsulation. The Get-Date cmdlet, by default, pulls the current date and time of the system and allows you to pick child objects from it, or quickly tie them together as formats.
Besides these operations, the cmdlet also allows you to pass a simple string format such as date and time and converts the input string into the DateTime object.
While Get-Date takes into account your current locale, the type accelerator, DateTime, works on the YMD—or the MDY-formatted date-time.
Read now
Unlock full access