title: Deserializing JSON dates timezone-less
body: <p>I have a problem that is breaking my head since yesterday and don't know how to deal with it.</p>
  
  <ul>
  <li><strong>I have a date field in my database that contains the following value:</strong></li>
  </ul>
  
  <p><img src="https://i.stack.imgur.com/IPMS8.png" alt="enter image description here"></p>
  
  <ul>
  <li><strong>Then my application get the value and send that to my web form.</strong> (the value still the same :) thats fine!!</li>
  </ul>
  
  <p><img src="https://i.stack.imgur.com/pH1hR.png" alt="enter image description here"></p>
  
  <ul>
  <li><strong>In client side I put a break with a javascript alert to see the value that is comming from JSON</strong> (the value still the same :) thats fine!!</li>
  </ul>
  
  <p><img src="https://i.stack.imgur.com/ncUU0.png" alt="enter image description here"></p>
  
  <p>The code in client side for the alert is this:</p>
  
  <pre><code>// transaction json model
  var jsonTransaction = @(Html.Raw(Json.Encode(this.Model.Transaction))); 
  alert(new Date(parseInt(jsonTransaction.Date.substr(6))));
  </code></pre>
  
  <ul>
  <li><strong>Now when I send back the value to the server this is what I get</strong></li>
  </ul>
  
  <p><img src="https://i.stack.imgur.com/ZQMTz.png" alt="enter image description here"></p>
  
  <ul>
  <li><strong>And finally after deserialization of the JSON my date time is wrong!! instead of Day 7 its now Day 8???????</strong></li>
  </ul>
  
  <p><img src="https://i.stack.imgur.com/OKar9.png" alt="enter image description here"></p>
  
  <p>This is the code for deserializing:</p>
  
  <pre><code>public JsonResult SaveBill(string jsonTransaction, string jsonTranDetails)
  {
      _appState = this.AppState;
      JsonResult returnVal = returnVal = Json(
         new { Success = true }
      );
  
  var transaction = JsonConvert.DeserializeObject&lt;BillTransaction&gt;(jsonTransaction, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore });
  </code></pre>
  
  <p>Any clue on how to solve this issue with dates, I should get the same date because I didn't change anything. Hope someone can guide me for a solution.</p>
  
  <p>Thanks in advance.</p>