Monday, 30 September 2013

VB.net How to Compare difference in years

VB.net How to Compare difference in years

New VB coder here, trying to check if todays date is more then 10 years
past a date from a grabbed database entry, and display a message if it is.
The Database is already imported and set up in the VB application H ave
made, and working, I made a report to display the information.
I am guessing I need to use the Datediff but I can't seem to get it to
work, Thanks.
I will give my variable name here
Dim Custsince as Date
'From the Database here
CustSince = CustListodr("Custsince")
Thanks in advance, working with dates is not my strong point.

No comments:

Post a Comment