Adding working days to a timestamp -- please help!

  • Thread starter Thread starter almurph
  • Start date Start date
A

almurph

Hi,

I have a trickly little problem that I hope you can help me with. I
need to add *working* days to a DateTime object of the format: yyyy/MM/
dd

For example: say I have a timestamp of the following date:

2008/10/24 <--tomorrow

say I want to add 5 *working* days, not forgetting Monday is a Bank
Holiday

so, the answer should become:

2008/10/24 + 5 = 2008/10/31

that is, Saturday, Sunday and Monday are excluded as Sat/Sun are the
wkeends and Mon is the Bank Holiday


Any way of doing this? Any comments/suggestions/code-samples much
appreciated.

Thanking you,
Colm
 
You need the user to record their holidays. Keep in mind that some companys
close for or more weeks at certain times in the year, some have 2 days for
bank holidays, different countrys have different holidays, etc.
 
Back
Top