The confusion is warranted and due to inconsistencies in Matlab's date-time formats.
datetime format uses MM/mm for months/minutes but datestr, datenum, and datevec use mm/MM for months/minutes. A recentcomment in the forumhighlights how difficult it is to detect the error caused by using the wrong case in datetime values.
Best Answer