GetFileDate()

Syntax

Result = GetFileDate(Filename$, DateType)
Description
Returns the date of the specified file.

Parameters

Filename$ The file to get the date from.
DateType The kind of date to return. It can be one of the following values:
  #PB_Date_Created : returns the file creation date.
  #PB_Date_Accessed: returns the last file access date.
  #PB_Date_Modified: returns the last file modification date.

Return value

Returns the requested date in the format of the PureBasic Date library.

Remarks

On Linux and Mac OSX, the date returned for #PB_Date_Created is the same as the date for #PB_Date_Modified, because most file systems do not store a file creation date.

See Also

SetFileDate(), DirectoryEntryDate()

Supported OS

All

<- GetFileAttributes() - FileSystem Index - GetFilePart() ->