%% Assign Elements of Returned Date Vector
% Convert text representing a date to a date vector and return the components of the date vector.

[y, m, d, h, mn, s] = datevec('01.02.12','dd.mm.yy')

% Copyright 2012 The MathWorks, Inc.