|
February 20, 2001 Computing the Next Business Day Tips: February 2001
Yehuda Shiran, Ph.D.
|
|
In many applications you need to find the next business day. Suppose you operate a purchasing and delivering site on the Web. Your operation model constrains your delivery service to send out every package the next business day. You probably want to tell your customers at which date the package would leave the premises. A bank processes customer applications for a new account in one business day. The bank would like to inform applicants when should they check back about their applications. These are typical examples where computing the next business day is very handy. The following function, getNextBusinessDay(), computes the next business day. We take advantage of our function, getDeliveryDateObj(1), which forward-computes the date, counting business days only. We just pass the value of 1 to this function (national holidays are counted as business days):
Click here to find out the next business day.
People who read this tip also read these tips: Look for similar tips by subject: |