A group object can easily cope with this task:
Get-ChildItem | Group {$_.LastWriteTime.ToString("yyyy-MM-dd")} | Sort Name
If you want to see only the date and cap in the format table, as shown below:
Get-ChildItem | Group {$_.LastWriteTime.ToString("yyyy-MM-dd")} | Sort Name |
Format-Table Name,Count -auto
source
share