%% Determine if Array Contains Datetime Values
% Define an array.

A = [datetime('now');datetime('tomorrow');datetime(2016,1,15)]

%
% Determine if the array is a datetime array.

tf = isdatetime(A)

% Copyright 2015 The MathWorks, Inc.