FileDate

FileDate["file"]
gives the date and time at which a file was last modified.

FileDate["file", "type"]
gives information on the specified type of date associated with a file.

DetailsDetails

  • FileDate returns the date and time in the format used by DateList.
  • Possible types of dates are:
  • "Access"when the file was last accessed
    "Change"when the file's attributes were last changed
    "Creation"when the file was originally created
    "Modification"when the file was last modified
    "Rules"a list of rules for all types of dates

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

The date and time at which a file was last modified:

In[1]:=
Click for copyable input
Out[1]=

Convert to the current local date and time:

In[2]:=
Click for copyable input
Out[2]=
New in 2 | Last modified in 7
New to Mathematica? Find your learning path »
Have a question? Ask support »