Getting Short Dates

by Sep 14, 2010

Objects contain useful methods to access the object data. For example, DateTime objects support methods to display the date and time in various formats.

Use this if you just need a short date:

(Get-Date).toShortDateString()

Use this to see all methods available:

Get-Date | Get-Member -MemberType *method

Twitter This Tip! ReTweet this Tip!