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 as a DateObject.
  • 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]=
Introduced in 1991
(2.0)
| Updated in 2014
(10.0)