title: Asp.net MVC and JSON date format exception - The value '/Date(251071200000)/' is not valid for Date Of Birth
body: <p>I get the following exception when posting my JSON object back to Asp.net MVC: </p>
  
  <pre><code>"The value '/Date(251071200000)/' is not valid for Date Of Birth."
  </code></pre>
  
  <p>Looking in Firebug there's definitely a value being posted back so I assume there's some problem in model binding. If I track the DateOfBirth property's set section the 'value' is null.  </p>
  
  <hr>
  
  <h2>The Setup Is</h2>
  
  <p>C# POCO object with a DateOfBirth property as follows: </p>
  
  <pre><code>    public DateTime? DateOfBirth
      {
          get
          {
              return ClientDto.Contact.DateOfBirth;
          }
          set
          {
              ClientDto.Contact.DateOfBirth = value;
          }
      }
  </code></pre>
  
  <p>The controller action sends the JSON data to the calling AJAX function as follows (Note: we've tried two options here): 
  Option 1: </p>
  
  <pre><code>/*...extract and initialize a profile object...*/
  return Json(profile, JsonRequestBehavior.AllowGet);
  </code></pre>
  
  <p>Option 2: </p>
  
  <pre><code>/*...extract and initialize a profile object...*/
  return Json(new JavaScriptSerializer().Serialize(profile), JsonRequestBehavior.AllowGet);
  </code></pre>
  
  <p>We post the JSON data back from the client side as follows: </p>
  
  <pre><code>$.ajax({
      url: this.editForm.prop("action"),
  
      data: kendo.stringify(copy),  //can be replaced with JSON.stringify
  
      type: "POST",
  
      contentType: "application/json; charset=utf-8",
  
      success: function (args)
      {
          //done
      }
  });
  </code></pre>