%% Dates with Different Types
% Concatenate a date character vector, a string date, and a datetime into a single row of dates. The result is a datetime row vector.

chardate = '2016-03-24';
strdate = "2016-04-19";
t = datetime('2016-05-10','InputFormat','yyyy-MM-dd');
C = horzcat(chardate,strdate,t)

% Copyright 2018 The MathWorks, Inc.