%% Initialize Rectangular datetime Array and Specify Format
% Create a 2-by-3 array of NaT values and specify a date format.

t = NaT(2,3,'Format','dd/MM/yyyy')

%
% Assign a datetime value to an element of t.

t(1,2) = datetime('today')

% Copyright 2012 The MathWorks, Inc.