In MATLAB software, I want to calculate algorithm working time in custom format. It works, but how to customize it to show this format: year:month:day hour:minutes:seconds:miliseconds
It shows: '01 00, 0000 00:00:06 051', The result is not correct because of 01 on the first(month).
startTime=datetime('now');
%some working.....
endTime=datetime('now');
workedTime= datestr((endTime-startTime), 'mm dd, yyyy HH:MM:SS FFF');