I want to calculate the amount of days left between now and let's say 5 days from now using daysbetween. everytime i try to run my app, it says that daysbetween is a an undeclared identifier. i want to use this function to limit the length of time a client can use my application. basically a trial version the can try out for a couple of days before it locks up and require serial key to reactivate. usually made a monthly trial but want to go to weekly one. can anybody give me some tips on this.
Thanx again you guys are real life savers.


nevermind hopefully figured it out on my own without using daysbetween.


Just doing a "round(YourDate-now);" (both TDateTime or TDate) would do the work, but, you are supposing the user won't play with the system clock to fool your system!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.