Forums

This topic is locked

number of days between to dates

Posted 03 Sep 2003 22:55:27
1
has voted
03 Sep 2003 22:55:27 david j johnson posted:
How can I find the number of days between two date using sql query. I want to guery some records and determine from the currernt day and the creation date if it is 21 days old.

Replies

Replied 05 Sep 2003 12:19:38
05 Sep 2003 12:19:38 Lee Diggins replied:
Hi

You need to use the DATEDIFF function, try this tutorila by Dennis:

www.dmxzone.com/showDetail.asp?TypeId=2&NewsId=4155#DATEDIFF

Digga

Sharing Knowledge Saves Valuable Time!!!

Reply to this topic