%% Convert Excel Date Number to Datetime
% Create a sample array of Excel® date numbers that represent a number of days since January 0, 1900.

X = [39558, 39600; 39700, 39800]

%
% Convert the values in X to datetime values.

t = datetime(X,'ConvertFrom','excel')

% Copyright 2015 The MathWorks, Inc.