Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Sets the file creation date.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Files 7.2 Yes Yes Yes No Yes
MBS( "Files.SetCreationDate"; Path; TimeStamp )   More


Parameter Description Example value
Path The native path to the file. "/Users/cs/Desktop/test.txt"
TimeStamp The new creation date and time. Get(CurrentTimeStamp)


Returns OK or error.


Sets the file creation date.


Set timestamp to now:

MBS( "Files.SetCreationDate"; "C:\Users\Administrator\Desktop\test.png"; Get(CurrentHostTimeStamp))

See also

Blog Entries

Created 19th April 2017, last changed 19th April 2017

Files.SetComment   -   Files.SetFinderLabel

Feedback: Report problem or ask question.

MBS Xojo tutorial videos