remove_timestamp.m

Version 1.0.0 (1.28 KB) by Barry Cense
Matlab code to remove timestamps in Windows filenames.
5 Downloads
Updated 26 Sep 2022

View License

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 .

MATLAB Release Compatibility
Created with R2022b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0