title: Asp.net mvc 5 adding a time stamp to when things were added?
body: <p>Let's say I have a comment section on my website that get stored in the database. When I add a new comment I would like to see who did add it and at what date / time he / she did post it. </p>
  
  <p>Not sure how I would go ahead and do that. Anyone that can push me into the right dirrection ? </p>
  
  <p>I am aware I can do this.       <code>public DateTime Time { get; set; }</code>
  How ever that would end up with the user entering his own date, I need to be automatic.</p>
  
  <p>Here is the model I tried, which does not compile, but instead generates <code>Error 3 The type name 'Now' does not exist in the type 'System.DateTime'</code>:</p>
  
  <pre><code>public class Suggestion {
      public int Id { get; set; } 
      public string Comment { get; set; } 
      public DateTime.Now Time { get; set; } 
  }
  </code></pre>
  
  <p>And this is the error I get <code>Error  3   The type name 'Now' does not exist in the type 'System.DateTime'</code></p>