On Wed, 5 Mar 2003, Booth Martin wrote:

> Here's how I get the last previous Friday to any date.  It'd be the same
> algorityhm to get the next monday from the 1st of any month.
>
> http://www.martinvt.com/Code_Samples/Date_Math/date_math.html
>
> I don't know how to handle holidays except by table.

I've written a handy little api that given a list of holidays observed
tells whether a given date is a holiday.  It correctly identifies a
holiday observed on Friday/Monday for those times when the actual holiday
is on the weekend (if you choose to do that).

James Rich

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.