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

SQL - Date Problem

Status
Not open for further replies.

yakdogs

Programmer
Aug 13, 2002
40
US
I am rather new to SQL and I am having a problem with a date calculation.

This is the formula that I am using:
GETDATE () - Received_Date as AGE
What I am looking for is the number of days between the two.

I know that GETDATE uses the system date, and the system date is correct but in looking at the result it gives a date of 1/5/1900.

I can not figure out what I am doing, can someone help me.
 
Terry;

I tried your suggestion and it worked, thanks alot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top