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
ReTweet this Tip!
Posted
Sep 14 2010, 08:00 AM
by
ps1