C# put date into program when compiled
<p>I was thinking about how to create a program that would only be valid for X period of time, (within a C# app).</p>

<p>What I was thinking was that you would have the current date as a constant inside the program and it would check to see if it is X days older than that.  Naturally I do not want to store the date, or the X outside of the program as it can be tampered with.</p>

<p>What I also do not want to manually change this regularly and recompile and deploy it.  So is there a way to set a variable to be the current date when it is compiled?</p>

<p>I could have a batch file that would compile it and deploy the new exe to the distribution server.</p>

<p>Thanks</p>
