954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

date confirmation

hello guys i have a database with tblblabla and column agent_id, name, regis_date, expire_date

agent_id , name , regis_date , expire_date-->COLUMN HEADER
BLA-1 , SAMPLE , 1/1/2012 , 1/1/2013-->COLUMN DATA

and i have a notification-form that check either the agent is expire or not if the agent is expire it will display to this form if not it will not

the main problem is i can check it by comparing the expire_date to present data, what if the expire_date compared with present date up to the future date, what i mean is how can i let the agent stay on the notification-form, agent will be remove when the expire_date is change
sorry for very poor explanation i hope you'll understand it, thnx in advance

auwi987
Light Poster
36 posts since Jun 2011
Reputation Points: 10
Solved Threads: 0
 

You need to subtract the dates. Try to use DateDiff Function.

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

thnx debasisdas but can you show me how to use datediff function? is it apply on sql query?
pls let me see some samples, thnx again

auwi987
Light Poster
36 posts since Jun 2011
Reputation Points: 10
Solved Threads: 0
 

Please read more here .

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You