Files.ModificationDate
----------------------

Queries the modification date of the file or folder.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Files](component_Files.md) | [2.9](newinversion29.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Files.ModificationDate"; Path ) 

**MBS**( **"Files.ModificationDate";** /\* Queries the modification date of the file or folder. \*/  
**$Path**) /\* Native path to the file to check.e.g. "C:\\test\\me.jpg" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Path | Native path to the file to check. | "C:\\test\\me.jpg" |

### Result

Returns timestamp or error.

### Description

Queries the modification date of the file or folder.  
  
Although the function is named date, it does return the time, too. Result is a timestamp.  
  
May include seconds with fractions, if supported on the file system.  
  
This function requires a native path. Use [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md) to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use [FileDialog](component_FileDialog.md) functions.  
For Server be aware that server has limited permissions and may not be able to access all files on a computer.  
### Examples

Queries modification date of a file

 MBS ( "Files.ModificationDate"; "C:\\test.txt" )  
Show files Dates:

 MBS ( "[Files.CreationDate](FilesCreationDate.md)"; "C:\\Users\\Christian\\Desktop\\ddd.rtf" ) &amp; " created" &amp; ¶ &amp;   
MBS ( "Files.ModificationDate"; "C:\\Users\\Christian\\Desktop\\ddd.rtf" ) &amp; " modified" &amp; ¶ &amp;   
MBS ( "[Files.AccessDate](FilesAccessDate.md)"; "C:\\Users\\Christian\\Desktop\\ddd.rtf" ) &amp; " accessed"  
### See also

- [Files.AccessDate](FilesAccessDate.md)
- [Files.CreationDate](FilesCreationDate.md)
- [Files.SetModificationDate](FilesSetModificationDate.md)
- [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md)

### Release notes

- **Version 11.0**
    - Rewrote [Files.FileSize](https://www.mbsplugins.eu/FilesFileSize.shtml), [Files.AccessDate](https://www.mbsplugins.eu/FilesAccessDate.shtml), [Files.CreationDate](https://www.mbsplugins.eu/FilesCreationDate.shtml) and [Files.ModificationDate](https://www.mbsplugins.eu/FilesModificationDate.shtml) to use newer APIs on macOS.

### Example Databases

- [Files/File Listing With Icons](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Files/File%20Listing%20With%20Icons.shtml#1ScriptAnchor_)
- [Files/FileInfo](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Files/FileInfo.shtml#1ScriptAnchor_)

### Blog Entries

- [MBS Plugin Advent calendar: 12 - Files](https://www.mbsplugins.de/archive/2023-12-12/MBS_Plugin_Advent_calendar_12_/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.0pr6](https://www.mbsplugins.de/archive/2021-01-09/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [Comparing Base Elements Plugin to MBS FileMaker Plugin](https://www.mbsplugins.de/archive/2017-10-24/Comparing_Base_Elements_Plugin/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 2.9pr3](https://www.mbsplugins.de/archive/2012-08-19/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 4/2020, Seite 34](https://filemaker-magazin.de/neuigkeit/4103-Appetithappen-FMM_202004)

This function checks for a license.

Created 18th August 2014 , last changed 23th February 2026

  
[Files.ListVolumes](FilesListVolumes.md) - [Files.Mount](FilesMount.md)

[HTML Version](FilesModificationDate.shtml)