title: compare date today
body: <p>I am new to MVC.  I want to use the dropdownlist to show <code>onchange</code>, once the dropdownlist changes anything, the view page will show the data from database </p>
  
  <pre><code>@Html.DropDownList("id", new SelectList(
      new[] { "Today", "Yesterday", "Older" }), " [Show By] ", 
      new { id = "history", onchange = "this.form.submit();" 
  })
  
  public ActionResult History(int id)
  {
  
  }
  </code></pre>
  
  <p>How do I type this statement? I am using lightspeed > LINQ. My database entity name is "visitors" and my field name is "timeout". My database store inside is datetime default which is formatted as following "5/9/2011 4:48:03 PM"</p>