Rename file with date modified in the file name

andrew_oh 21 Reputation points
2022-07-22T12:39:30.757+00:00

I would like to rename multiple files with its file date modified. I am able to rename with todays date but can't figure out how to get the file date modified in the file name.

223739-image.png

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

Accepted answer
  1. MotoX80 36,401 Reputation points
    2022-07-22T13:40:28.447+00:00
     Get-ChildItem | Rename-Item -NewName {"Summer Fossile - " + $_.CreationTime.ToString("yyyyMMdd") + " - " + $_.name } -whatif  
    
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.