Actually, no it isn't. It's "pumping out" the date as a System.DateTime object, 
and since you don't say otherwise, the F&O engine is taking the default output 
on the object.

Prove this to yourself:

               $array = get-childitem c:\users\me\test\* | select 
-expandproperty lastaccesstime
               $array[0] | Get-Member

From: [email protected] [mailto:[email protected]] On 
Behalf Of James Rankin
Sent: Tuesday, December 10, 2013 6:27 AM
To: [email protected]
Subject: [NTSysADM] PowerShell is my weakness....

I'm trying to compare the date/time stamps of two folders (including all the 
included files and subfolders). So far, this seems to do the trick
get-childitem c:\users\me\test\* | select -expandproperty lastaccesstime

but the problem is it pumps out the date in a long format - how can I get it to 
be a short format so I can easily compare the two?
TIA,




--
James Rankin
Technical Consultant (ACA, CCA, MCTS)
http://appsensebigot.blogspot.co.uk

Reply via email to