Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I display the time stamp of a file with seconds,

(creation date/time, modified date/time, and access date/time. All, with seconds).

from the command line?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You could use PowerShell to get that information.

  1. Start PowerShell from the startmenu
  2. Use:

Get-ChildItem <<File or Folder>> -Force | Select-Object FullName, CreationTime, LastAccessTime, LastWriteTime, Mode, Length

It will print out the information for you. -Force is used to get items that cannot otherwise be accessed by the user, such as hidden or system files. Additionally you can use the -Recurse option to recurse into folders.

--------- //added by barlop

PS C:\Users\user> Get-ChildItem c:\q\az.png -Force | Select-Object FullName, CreationTime, LastAccessTime, LastWriteTime
, Mode, Length

FullName       : C:\q\az.png
CreationTime   : Sun 28 Apr 2013 12:12:59
LastAccessTime : Sun 28 Apr 2013 12:12:59
LastWriteTime  : Tue 22 Jul 2008 05:01:47
Mode           : -a---
Length         : 79248

PS C:\Users\user>

-------------- // end added by barlop

An easy way to recurse into folders and have a file that can be imported into Excel is to use:

Get-ChildItem C:\ProjectX -Force -Recurse | Select-Object FullName, CreationTime, LastAccessTime, LastWriteTime, Mode, Length | Export-Csv c:\temp\ProjectX_files.csv

//pic added by barlop
enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.