Get timestamps of file in 24h format using Powershell
Budget: €8 – €30 EUR
I use the code below to get the filestamps of a file
Get-ChildItem "%FullPathOfFileToGetTimestampFor%" -Force | Select-Object FullName, CreationTime, LastAccessTime, LastWriteTime, Mode, Length
The variable "%FullPathOfFileToGetTimestampFor%" is replaced with the path of the file to get the timestamps from
However, because the default language of the system is not English, instead of "a.m." or "p.m." I get symbols at the end of the date/time (e.g. 18/11/2021 7:03:42 §£).
I would like to get those timestamps in a 24 hour format.
e.g. yyyy-MM-dd hh:mm:ss
2021-11-18 19:03:42
I just need a line of code and I offer 10 euros for this!
Thank you
Get-ChildItem "%FullPathOfFileToGetTimestampFor%" -Force | Select-Object FullName, CreationTime, LastAccessTime, LastWriteTime, Mode, Length
The variable "%FullPathOfFileToGetTimestampFor%" is replaced with the path of the file to get the timestamps from
However, because the default language of the system is not English, instead of "a.m." or "p.m." I get symbols at the end of the date/time (e.g. 18/11/2021 7:03:42 §£).
I would like to get those timestamps in a 24 hour format.
e.g. yyyy-MM-dd hh:mm:ss
2021-11-18 19:03:42
I just need a line of code and I offer 10 euros for this!
Thank you
Related categories:
Powershell