majorbroncosfan
Programmer
In Visual Basic and MS Access, I am able to use the DateAdd function to add one year to a date. What is the equivalent function in Visual FoxPro? Does somebody have an example?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
ldToday = DATE()
ldTomorrow = ldToday+1
ldToday=DATE()
lnDay = DAY(ldToday)
lnMonth = MONTH(ldToday)
lnYear = YEAR(ldToday)
lnYear=lnYear+1
lcNewdate=ALLTRIM(STR(lnDay))+"/"+ALLTRIM(STR(lnMonth))+"/"+ALLTRIM(STR(lnYear))
ldNextYear=CTOD(lcNewdate)