Adding working days to a timestamp -- please help!

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
 
P

Peter Morris

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top