Finding Next Business Day

  • Thread starter Thread starter yohaas
  • Start date Start date
Y

yohaas

I need a function that will tell me the next business day from a
specific date. Other date manipulation and calcuklation would be nice,
but I particularly need the business day one. For those of you familiar
with Perl, something like Date::Manip would be great :)

Thanks,
Yohaas
 
If it's a date time, there is the DayOfWeek property.

Evaluate it to see if it's 1,2,3,4 or 5 and not 6 or 7.

However, you will also have to have an XML file or something for holidays.
 
Thanks, I was looking for something that does everything for me :) I
could certainly write something myself, but keeping track of the
holidays and figuring out when it comes out is a pain. I'm sure someone
has written something to do this already.

Thanks,
yohaas
 
In theory, there should be a web service somewhere that you could make
calls to and integrate it into your application.

In theory...

;D
 
yohaas said:
Thanks, I was looking for something that does everything for me :) I
could certainly write something myself, but keeping track of the
holidays and figuring out when it comes out is a pain. I'm sure someone
has written something to do this already.

The problem here is how does one define a "business day", or more
exactly, a "non-business day".

In the USA, for example, Thanksgiving (the fourth Thursday of November)
is "universally" considered a holiday --- but is celebrated nowhere else in
the world (on that day). Then, about half the companies in the US give
their employees the next day off as well.

--
Truth,
James Curran
[erstwhile VC++ MVP]
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
 
Back
Top