I can format the time of the files with the following command:
Get-ChildItem Dropbox | Get-Date -format "yyyy-MM-dd hh:mm"
I can get the CreationTime of the files with the following command:
Get-ChildItem Dropbox | Select-Object CreationTime
They blow up when I combine them together. How can I get the creation time in a format I desire?
You need to expand the CreationTime
property:
Get-ChildItem Dropbox |
Select-Object -ExpandProperty CreationTime |
Get-Date -f "yyyy-MM-dd hh:mm"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With