get-childitem c:\temp\* |select -expandproperty lastAccessTime|get-date -Format g
Christopher Bodnar Enterprise Architect I, Corporate Office of Technology:Enterprise Architecture and Engineering Services Tel 610-807-6459 3900 Burgess Place, Bethlehem, PA 18017 christopher_bod...@glic.com The Guardian Life Insurance Company of America www.guardianlife.com From: James Rankin <kz2...@googlemail.com> To: NTSysADM@lists.myitforum.com Date: 12/10/2013 06:29 AM Subject: [NTSysADM] PowerShell is my weakness.... Sent by: listsad...@lists.myitforum.com 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 ----------------------------------------- This message, and any attachments to it, may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are notified that any use, dissemination, distribution, copying, or communication of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately by return e-mail and delete the message and any attachments. Thank you.
<<image/jpeg>>