Get list of files whose creation date is greater than some date time

Question:

I have a date 2015/05/28 I want to list all files using order by creation date whose creation date is greater than that using PowerShell. How could I do that?

I googled for it and found Get-ChildItem "C:\Users\gerhardl\Documents\My Received Files" but no idea how to compare it with creation date plus order the result by creation date.

Answer:


String is cast to datetime if you specify [datetime] before it. You can read about comparison operators by typing help about_Comparison_Operators in PowerShell console.

Source:

Get list of files whose creation date is greater than some date time by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply