image thumbnail


version (1.37 KB) by Charles Plum
Returns the modification date (datenum) of a file


Updated 24 Aug 2009

View License

Purpose: Returns the modification date (datenum) of a file
Usage: file_datenum = filedatenum('myfile.dat')
Author: Charles Plum, Varolii Corp, 21 August 2009

Not elegant but it works ...
Had to check for files in a loop ...
written in haste but really does the trick ...
could not find a similar Matlab function.

to get a more readable date just say ...

Cite As

Charles Plum (2021). filedatenum (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!