On 1/23/07, Alan Bourke <[EMAIL PROTECTED]> wrote: > > A day is 6am to 6am (not 6pm like my original post, sorry) therefore the > above uses up one day since it is within a 6am-6am timespan. >
So, #DEFINE SecondsInADay 24*3600 Function DaysUsed(tStartDateTime, tEndDateTime) Return 1+INT((tEndDateTime-tStartDateTime)/SecondsInADay) -- Ted Roche Ted Roche & Associates, LLC http://www.tedroche.com _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

