title: How to append datetime value to formdata and receive it in controller
body: <p>I want to know how I can pass datetime value through formdata and
  retrieve it in controller and convert it to DateTime in the controller </p>
  
  <p>I've tried as below:</p>
  
  <pre><code>var formdata=new FormData();
  fromDate = $('.from_date').datepicker('getUTCDate');
  toDate = $('.to_date').datepicker('getUTCDate');
  
  formdata.append("start", new Date(fromDate));
  formdata.append("end", new Date(toDate));
  </code></pre>
  
  <p>and in <code>$.ajax</code> I am setting <code>data:formdata</code></p>
  
  <p>in my controller I receive it as below:</p>
  
  <pre><code>DateTime frmDate = Convert.ToDateTime(Request.Form["start"]).Date;
  DateTime toDate = Convert.ToDateTime(Request.Form["end"]).Date;
  </code></pre>
  
  <p>But here I get a <code>System.FormatException</code> while trying to <code>Convert</code> to datetime and when I keep a watch for <code>Request.Form["start"]</code> then the value will be <code>"Fri Mar 30 2015 05:30:00 GMT+0530 (Indian Standard Time)"</code> but it considers it as string when retrieving from request.</p>
  
  <p><strong>Is it possible to pass datetime type through <code>Request</code>?</strong></p>