File Exchange

image thumbnail

mdatestr, mdatenum: A simple alternative of datestr and datenum

version 1.0 (1.58 KB) by

the original datestr and datenum are powerful, but slow. The two functions' are limited, but faster.

2 Downloads

Updated

View License

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'

Comments and Ratings (1)

Brian Emery

Nice submission, easy to use, and easy to modify to do what I needed to do.

MATLAB Release
MATLAB 7.11 (R2010b)
Acknowledgements

Inspired by: DateConvert

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video