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

Delete the expired date 1

Status
Not open for further replies.

neomax

Programmer
Jul 1, 2006
29
BG
Hi, Everybody!

I make query for the deleting data with expired date on my database when the user call web application,

DELETE
FROM Table
WHERE CLDate < date();

It is working fine, when delete date that are "<" then today date, but not !!! matter what is the year!!

For Example:
if exp.day 12/01/2006 and 12/01/2007 it delete the both, but shouldnt delete the 12/01/2007!!
What is the problem??

 
Thanks a lot for traingamer !!

Yes, the CLDate not was defined like a Date
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top