-
increment calendar entries (calculate business day)
I am looking to develop a small calendar app which will display daily tasks
to be completed. Once the user completes the task, the app should then increment
the due date of the task to the next business day (ie not Sat or Sun). Can
anyone offer any suggestions as to how I should calculate this increment
and whether it is a business day.
Many thanks
Ali
-
Re: increment calendar entries (calculate business day)
Greg,
Once the user completes the task, using the Weekday function if today
is friday increment by 2 or else 1. If you need to handle Holidays also,
maintain the list of holidays, internally in your program, using a collection
and every time your increment the due date, check to see if it is a holiday.
If yes, increment again.
- Jaideep
"Alistair Gregory" <alig_spot@hotmail.com> wrote:
>
>I am looking to develop a small calendar app which will display daily tasks
>to be completed. Once the user completes the task, the app should then
increment
>the due date of the task to the next business day (ie not Sat or Sun).
Can
>anyone offer any suggestions as to how I should calculate this increment
>and whether it is a business day.
>
>Many thanks
>Ali
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks