SetFileDate()

Syntax

Result = SetFileDate(Filename$, DateType, Date)
Description
Changes the date of the specified file.

Parameters

Filename$ The name of the file to modify.
DateType The kind of date to modify. It can be one of the following values:
  #PB_Date_Created : change the file creation date.
  #PB_Date_Accessed: change the last file access date.
  #PB_Date_Modified: change the last file modification date.
Date The date to set. This has to be a value from the Date library.

Return value

Returns nonzero if the operation was successful and zero otherwise.

Remarks

On Linux and Mac OSX, the date used 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

GetFileDate()

Supported OS

All

<- SetFileAttributes() - FileSystem Index