increment calendar entries (calculate business day)


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: increment calendar entries (calculate business day)

  1. #1
    Alistair Gregory Guest

    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

  2. #2
    Jaideep Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center