I've seen and tested several of the other postings listed but none of them seem to address what I am trying to do.
My problem is that I have 2 dates, start and end date. I need to calculate the times between the two in Days, hours, minutes,and seconds however I need to exclude weekends. The start and end dates will never fall on a saturday or sunday, but can span over the weekend.
Most of the code I've seen is just testing for start and end days falling on weekends.
How can I get the DD:HH:MM if the record spans over the weekend? I am not using business hours so I don't have to worry about setting that anywhere, just 24 hour military time.
One example that I have is the start datetime is 2/3/06 2:24:49 pm and the end date is 2/7/06 7:34:00 am. I need to calculate the rest of the day on 2/3, count the 24 hours for 2/6/06, then the 7 1/2 hours for 2/7 but exclude the 48 hours for saturday and sunday, then convert that into Days:Hours:Minutes:Seconds.
Has anyone done this before??
My problem is that I have 2 dates, start and end date. I need to calculate the times between the two in Days, hours, minutes,and seconds however I need to exclude weekends. The start and end dates will never fall on a saturday or sunday, but can span over the weekend.
Most of the code I've seen is just testing for start and end days falling on weekends.
How can I get the DD:HH:MM if the record spans over the weekend? I am not using business hours so I don't have to worry about setting that anywhere, just 24 hour military time.
One example that I have is the start datetime is 2/3/06 2:24:49 pm and the end date is 2/7/06 7:34:00 am. I need to calculate the rest of the day on 2/3, count the 24 hours for 2/6/06, then the 7 1/2 hours for 2/7 but exclude the 48 hours for saturday and sunday, then convert that into Days:Hours:Minutes:Seconds.
Has anyone done this before??