Creation Date
Creation date is an attribute of a file that reflects the date and time when the file was created.
Displaying
You can display the file's creation date by:
- running DIRECTORY/FULL on it
- using the F$FILE_ATTRIBUTES() lexical: F$FILE_ATTRIBUTES(filespec,"CDT") returns the creation date and time
File Selection
Many DCL commands such as DIRECTORY offer a similar set of qualifiers for file selection. Since /CREATED is the default qualifier, you may simply use /BEFORE and /SINCE to select files created before or since a certain absolute time, delta time, a combination of these two, BOOT, LOGIN, TODAY (default), TOMORROW, or YESTERDAY.
Modifying
You may modify the creation date of a file with SET FILE/ATTRIBUTES=CREDATE.