Since the first array contains a time stamp and the other does not, it is necessary to make sure that one "shifts" the dates in the first array so that they are just the dates themselves and do not have a time stamp associated with it. If you have:
12/11/2019 3:43:22 AM
and
12/11/2019
MATLAB will treat the first one as later. In order to make MATLAB treat them the same, you can use the "dateshift' command to shift the dates with timestamps to to the "start" of the day. You can do this as follows:
>> array = dateshift(array, 'start', 'day');