Author: brosiuba | Posted on: 6/17/2010 12:30:37 PM | Views : 285

I am using C#/Asp.net for creating an leaving application in which user will enter select date and time (i.e. 06/17/2010 - 9:00 AM - it is the date and time when he leave wil start) and duration which will be in hours i.e. 4/12/18 and so on. Our working times are 8 AM to 5 PM.
Now I want to calculate leave end date as mentioned below. Please advise
Start Date               Duration              End Date
5/8/2010 9:00        4 Hrs                    5/8/2010 13:00
5/14/2010 13:00    4 Hrs                    5/14/2010 17:00
5/13/2010 9:00      8 Hrs  & ...

Go to the complete details ...