%% Determine the Quarter for a Given Date
% quarter returns the quarter of the given date, assuming the standard calendar that starts on Jan 1st.

quarter('7-Apr-2013')

% Copyright 2012 The MathWorks, Inc.