mdatestr, mdatenum: A simple alternative of datestr and datenum
Version 1.0.0.0 (1.58 KB) by
Zhiqiang Zhang
the original datestr and datenum are powerful, but slow. The two functions' are limited, but faster.
The original datestr and datenum are powerful, but slow.
mdatestr, mdatenum only convert date between string with format 'yyyy-mm-dd' and series value (with Excel type).
They cost 20% time of datestr and datenum(with specific format).
% usage
% mdatenum('2010-10-30') % ans = 734421
% mdatestr(73421) % ans = '2010-10-30'
Cite As
Zhiqiang Zhang (2026). mdatestr, mdatenum: A simple alternative of datestr and datenum (https://www.mathworks.com/matlabcentral/fileexchange/29184-mdatestr-mdatenum-a-simple-alternative-of-datestr-and-datenum), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Dates and Time in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: DateConvert
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
