Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date count Confusion !!

Status
Not open for further replies.

Monkeyboy126

IS-IT--Management
Dec 9, 2002
47
GB
Hi all

I want to be able to count the number of days between two dates but not including weekend days.

Any ideas?

Many thanks
 
Create a formula :

DateTimeVar StartDate := {Table1.StartDateField};
DateTimeVar EndDate := {Table1.EndDateField};
DateDiff("d",StartDate,EndDate) -
DateDiff("ww",StartDate,EndDate,crSaturday) -
DateDiff("ww",StartDate,EndDate,crSunday)

Let me know how you get on......

Reebo
Scotland (Sunny with a Smile)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top