title: Pass a JSON format DateTime to ASP.NET MVC
body: <p>We know that MVC returns DateTime for JsonResult in this format: <code>/Date(1240718400000)/</code>, and we know how to parse it in JS.</p>
  
  <p>However, It seems that MVC doesn't accept DateTime parameter being sent in this way. For example, I have the following Action.</p>
  
  <pre><code>[HttpGet]
  public ViewResult Detail(BookDetail details) { //... }
  </code></pre>
  
  <p>The BookDetail class contains a DateTime field named CreateDate, and I passed a JSON object from JS in this format:</p>
  
  <pre><code>{"CreateDate": "/Date(1319144453250)/"}
  </code></pre>
  
  <p>CreateDate is recognized as null.</p>
  
  <p>If I passed the JSON in this way, it works as expected:</p>
  
  <pre><code>{"CreateDate": "2011-10-10"}
  </code></pre>
  
  <p>The problem is that I cannot change client side code in an easy way, have to stick to /Date(1319144453250)/ this format. I have to make changes in server side.</p>
  
  <p>How to solve this problem? Is that anything related to ModelBinder?</p>
  
  <p>Thanks so much in advance!</p>