View Full Version : Expiration date
tactica
08-11-2007, 06:36 AM
Hi Everybody,
I need and example of expiration date.........to allow AMS work until the day setted.
For example, I need to allow to use the project until 31/8/2007, and after this day, the project wouldnīt open.
Besides, I need to know how to ignore if the use change the machine date....
Thanks a lot.
bobbie
08-12-2007, 12:44 PM
http://www.indigorose.com/forums/showthread.php?t=15061&highlight=Expiration+date
tactica
08-13-2007, 08:17 AM
http://www.indigorose.com/forums/showthread.php?t=15061&highlight=Expiration+date
Hi Bobbie,
Thanks for the answer, but itīs no iīm looking for.
I want to establish a certain day, not 30 days trial.
Thanks-
--Input your expiration date here, format YYYYMMDD
--(no spaces, dashes, slashes, etc. just use numbers)
--Below is the date Dec 12, 2003
Expiration_Date = "20031212"
--Get the system date in ISO format
--Date = YYYY-MM-DD
Date = System.GetDate(DATE_FMT_ISO);
--Remove the dashes in the ISO format date
--to reflect the format of our expiry date
--Date == YYYYMMDD
Date = String.Replace(Date, "-", "", false);
--test to see if the application is expired
if Date > Expiration_Date then
--The application has expired
Dialog.Message ("", "application is expired");
Application.Exit();
end
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.