How to make your program unable to use after one year?

The intention is that the ‘subscription’ of your copy of the program expires after one year. Ive searched a lot on the internet for this, but can’t find something (if it’s possible at all), if not, is there a way to make your copy of the program unable to use when it passes a certain date?

I hope someone can help me and thanks in regards!

You need to securely store the activation date, then compare that against the system time. But, if you really want to be secure, you’ll need to compare it against an online clock, which adds an always-online requirement to your program that end users hate.