%% Format for Date Tick Labels
% Create a line plot with datetime values along the x-axis. Then, change the format of the dates.

t = datetime(2014,6,28) + caldays(1:10);
y = rand(1,10);
plot(t,y);
xtickformat('MM-dd')

% Copyright 2012 The MathWorks, Inc.