title: c# asp.net DateTime cached
body: <p>I've got a field on a class that should set the current date correctly:</p>
  
  <pre><code>private static DateTime Today = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day);
  </code></pre>
  
  <p>And then I'm performing different logic based on the day.
  The problem is that it works locally but it won't work on the live server.
  So for example if the date is the 5th then the logic of the 4th will be performed, unless I touch the web.config or I update the dlls. So I assume it is a cache problem, but why? I'm not caching the date at all.
  I did not use the DateTime.Today because I thought that was the problem...</p>