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.

See Also

GetFileDate()

Supported OS

All

<- SetFileAttributes() - FileSystem Index