I think you would need the following:
Save the installation date (either in a localDB or in the registry)
Identify the current date
If you do it by date, you should be very concerned about the restriction, because if the user changes the date it can give a problem, and if you get the date of a WebService you will have to be logged in.
I did a similar thing a while back, but I did not care much about date tracking, I did the following:
The user can use for 30 days or X Uses (initializations).
When I start the system, I check if the date has already passed, if it has not passed if the usage has passed. Except the uses in a counter in a localDB along with the information of the app.
This was the best, fastest way I found to do something similar to what you're looking for.