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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculate number of days excluding start and end date 1

Status
Not open for further replies.

Mr2006

Technical User
Jun 21, 2006
80
US
,

I want to count the days between two days and exclude the start date and end date in a report Example,

Start date 01/01/2008 and enddate 01/03/2008 the result will be 1

 
try in your underlying query. Per your above example, this will give 1 as the result
Code:
Diff:datediff("d",yourdate1,yourdate2)-1

Take it Easy
Man with one chopstick go hungry
 
Wow...it worked perfectly. Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top