I'm curious what are the pros and cons of the following code to terminate an application from running after a certain date in time.
DateTime expire = new DateTime(2014, 2, 20);
if (DateTime.Now > expire)
{
MessageBox.Show("This Software's License has expired!");
this.Close();
}
I'm considering using this in a small beta for some software I've written but wonder if its fool proof or can the datetime class be "tampered" with by setting a clock back on the system? I'm not entirely sure if DateTime simply relies on what ever the OS System thinks the time is or not.