Files.AccessDate
----------------

Queries the access 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.AccessDate"; Path ) 

**MBS**( **"Files.AccessDate";** /\* Queries the access 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 access 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 access date of a file

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

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

- [Files.CreationDate](FilesCreationDate.md)
- [Files.ModificationDate](FilesModificationDate.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/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)
- [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 33](https://filemaker-magazin.de/neuigkeit/4103-Appetithappen-FMM_202004)

This function checks for a license.

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

  
[FileDialogWatcher.Install](FileDialogWatcherInstall.md) - [Files.AddedToDirectoryDate](FilesAddedToDirectoryDate.md)

[HTML Version](FilesAccessDate.shtml)