remove_timestamp.m

Matlab code to remove timestamps in Windows filenames.

You are now following this Submission

Windows can add timestamps to filenames, but sometimes this happens without you knowing it, and you may not like it because your Matlab scripts do not work with files that have added filestamps. For instance, a filename named 'hello.txt' is suddenly called 'hello (2019_07_06 22_48_18 UTC).txt'. This code looks in a directory for files, checks if there is a timestamp and removes it. Works like a charm.

Cite As

Barry Cense (2026). remove_timestamp.m (https://www.mathworks.com/matlabcentral/fileexchange/118120-remove_timestamp-m), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0