({{, (RefLink[FileDate, paclet:ref/FileDate])["file"]
gives the date and time at which a file was last modified. }, {, (RefLink[FileDate, paclet:ref/FileDate])["file","type"]
gives information on the specified type of date associated with a file.}})

OpenersNotesSection(Spacer1)Details

(RefLink[FileDate, paclet:ref/FileDate]) returns the date and time as a (RefLink[DateObject, paclet:ref/DateObject]).

Possible types of dates are:

(RefLink[FileDate, paclet:ref/FileDate])[(RefLink[File, paclet:ref/File])["file"]] is also supported.

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

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

FileDate[$InstallationDirectory<>"/Documentation/English/System/ExampleData/ocelot.jpg"]

Convert to the current local date and time:

DateString[%]

OpenersExampleSection1(Spacer1)Scope  (1)

Get the modification time of the file specified by the (RefLink[File, paclet:ref/File]) object:

FileDate[File[$InstallationDirectory<>"/Documentation/English/System/ExampleData/USConstitution.txt"]]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[SetFileDate, paclet:ref/SetFileDate])  ▪  (RefLink[DateList, paclet:ref/DateList])  ▪  (RefLink[DateString, paclet:ref/DateString])  ▪  (RefLink[$CreationDate, paclet:ref/$CreationDate])  ▪  (RefLink[FileSize, paclet:ref/FileSize])  ▪  (RefLink[FileHash, paclet:ref/FileHash])  ▪  (RefLink[FileNames, paclet:ref/FileNames])  ▪  (RefLink[UnixTime, paclet:ref/UnixTime])  ▪  (RefLink[FromUnixTime, paclet:ref/FromUnixTime])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Manipulating Files and Directories, paclet:tutorial/ManipulatingFilesAndDirectories])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[File Operations, paclet:guide/FileOperations])}, {▪(RefLinkPlain[Files, paclet:guide/Files])}, {▪(RefLinkPlain[External Operations, paclet:guide/ExternalOperations])}})}})