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

How to determine # of weeks between dates

Status
Not open for further replies.

cisco999

Programmer
Apr 26, 2001
66
US
Any suggestions how to calculate number of weeks between dates, allowing for the dates to span years. Thanks in advance for your help!
 
SELECT trunc((endDate - startDate)/7)
FROM ...

or

FullWeeks := trunc((endDate - startDate)/7);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top