%% Determine the Quarter for a Given Date for an Off-Cycle Calendar
% quarter returns the quarter of the date for a calendar which starts on the month specified by month1.

quarter('7-Apr-2013',5)

% If the financial calendar starts in May (where month1 = 5), April would be the last month and fall in the last quarter.
% Copyright 2012 The MathWorks, Inc.