isDateValid Use

Can you give an example of how IsDateValid is supposed to be used and what exactly the the TA_HAS_NOT_EXPIRED is checking? When I run the code below it always returns false.

sDateTime = System.DateTime.UtcNow.ToString("yyyy-MM-dd HH:mm:ss") MsgBox(sDateTime) MsgBox(TurboActivate3.IsDateValid(sDateTime, TurboActivate3.TA_DateCheckFlags.TA_HAS_NOT_EXPIRED))

Can the IsDateValid function be used to check the validity of the current date so I can compare it against the expiration date in license feature for time-based license?

ThanksGarron

Hey Garron,

You use the IsDateValid() function to check dates of feature values of Date/Time type. For instance, create a feature value "update_expires", and have the value set to a year from now. From now until 1 year from now IsDateValid() will return true when you pass in the feature value for "update_expires" (using GetFeatureValue() ).

If you want to use your own date checking then you certainly can. IsDateValid() is a convenience function.

Does that make sense?

Yes it makes sense.

I did some testing and it appears that you have incorporated date tampering detection. Is that correct?

Thanks for the explanation Sam.

Garron

Yes, there's some limited tamper protection. We'll be improving it with each subsequent version of TurboActivate.