This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

SetFileDate

Updated In 7 Graphic
SetFileDate["file"]
sets the modification and access dates for a file to be the current date.
  • SetFileDate["file", date] sets the modification and access dates to be the specified date.
  • The date must be given in the {year, month, day, hour, minute, second} format used by DateList.
  • SetFileDate["file", date, "type"] sets if possible the specified type of date for a file. Types of dates include "Access", "Creation" and "Modification". All represents all types of dates.
Copy a file:
The date and time at which a file was last modified:
SetFileDate modifies the date of the file to be the current date:
Check:
Set a specific date:
Delete the temporary file:
Copy a file:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
The date and time at which a file was last modified:
In[3]:=
Click for copyable input
Out[3]=
SetFileDate modifies the date of the file to be the current date:
In[4]:=
Click for copyable input
Check:
In[5]:=
Click for copyable input
Out[5]=
Set a specific date:
In[6]:=
Click for copyable input
In[7]:=
Click for copyable input
Out[7]=
Delete the temporary file:
In[8]:=
Click for copyable input
New in 2 | Last modified in 7