Date comparison for validation.
Hi people, good afternoon!
I would like to know how I can be creating a code that expires within a time, using getDate and time.
For example, having an input field, where I check if a token exists, and compare the dates to check if it is active within the period.
(example):
new InitialDate: DD/MM/YY
new EndDate: DD/MM/YY
function ... {
if(code.text = "itsCode")
{
if(InitialDate > EndDate)
{
gotoAndStop(2);
}
else
{
trace("error, expired");
}
