How to calculate "days left" for license that must expire on specified DATE? I tried to use function WLRegDaysLeft(), but it returns -1 for license with specified expiration date.

<< Click to Display Table of Contents >>

Navigation:  WinLicense > FAQ > Trial >

How to calculate "days left" for license that must expire on specified DATE? I tried to use function WLRegDaysLeft(), but it returns -1 for license with specified expiration date.

The function WLRegDaysLeft returns the days left when you create a license with trial days expiration (not date expiration option). If you have created a license with date expiration and you want to explicitly get the number of days left until that date, you can use the function WLRegDateDaysLeft.