title: Display C# DateTime in HTML Text Input
body: <p>So I'm pulling a DateTime from a database and I want to display it in an HTML text input (<code>&lt;input type="text"&gt;</code>).</p>
  
  <p>By the time the C# DateTime is sent to Javascript, it looks something like this: <code>fooDate: {6/22/2011 2:30:00 PM}</code>.  But when it is displayed in the <code>&lt;input&gt;</code>, it ends up looking like this: <code>2011-06-22T14:30:00</code>.</p>
  
  <p>It's kind of annoying because I only care about displaying the <em>date</em>.  Why is this this conversion happening, and is there a way to just get it to display the <code>6/22/2011 2:30:00 PM</code> bit?  Can this be accomplished without the use of regular expressions?</p>