How Can We Help?
< All Topics

How do I get the “Last Modified” date of a file?

The Variable Set from File command will obtain the date and time of the file you specify and save the information into Integer variables. There are three different time frames to choose from, based upon what you need to compare.

  1. Creation Date/Time – The date and time that the file was originally created.
  2. Modified Date/Time – The date and time that the file was last modified or updated and saved.
  3. Last Accessed Date/Time – The date and time that the file was last accessed or opened.

Note: Not all file systems will support all three of these date/time formats. Macro Express will warn you when you try to run the macro if the format you selected is not available.

– Applies to: Macro Express and Macro Express Pro