%% Computes the Number of Business Days Between Two Input Dates Using a datetime Array
% This example shows how to compute the number of business days (i.e. non-holiday or non-weekend) between two dates, specified as a datetime array, using the days252bus convention.

NumberDays = days252bus(datetime('1-Jan-2009','Locale','en_US'), '8/1/2009')

% Copyright 2012 The MathWorks, Inc.