The API function you could use is GetSystemTime...
- Code:
GetSystemTime
This function retrieves the current system date and time.
The system time is expressed in Coordinated Universal Time (UTC).
void GetSystemTime( LPSYSTEMTIME lpSystemTime );
Are you are trying to implement app expiration on an actual fixed date sometime in the future ?
Or a 'trial' period for your app, by setting a terminate date say 15 days from the first time the app is run ? In which case, you will of course have to ensure that a simple reinstall of the app doesn't just simply restart the trial period over. The method for doing that should of course vary for each developer
Jasper