title: Json returns different dates when local machine and server in different timezones
body: <p>I have a strange problem in json date parsing. I am using the following to parse the json date:</p>
  
  <pre><code>dateFormat(new Date(parseInt(user.RegDate.substr(6))), "mm/dd/yyyy")
  </code></pre>
  
  <p>When my local machine (Client) is in different timezone from the server timezone, then it returns different dates when i try to retrieve the registered date of the users. </p>
  
  <p>For ex.:</p>
  
  <p>Registered date in SQL: <code>2010-07-22 19:00:00.000</code></p>
  
  <p>When i debug in local machine which is in IST Timezone, the dates from JsonResult returned are:</p>
  
  <pre><code>/Date(1279805400000)/
  Thu Jul 22 19:00:00 UTC+0530 2010
  </code></pre>
  
  <p>The same data when i access it from the deployed server which is in EST timezone, the dates from JsonResult returned are:</p>
  
  <pre><code>/Date(1279843200000)/
  Fri Jul 23 05:30:00 UTC+0530 2010
  </code></pre>
  
  <p>This works perfect (returns same date - Thu Jul 22)  when i change my local machine to EST Timezone. Am i missing anything here?. Please suggest</p>
  
  <p>The Server Code is [EDIT]:</p>
  
  <pre><code>public JsonResult GetregisteredUsersJSON()
  {
     var usersList = this.GetregisteredUsers()
     return Json(usersList, JsonRequestBehavior.AllowGet);
  }
  
  private List&lt;Users&gt; GetregisteredUsers()
  {
      return (from u in _context.mu_Users
          orderby u.Reg_Date descending
          select new Users
          {
              FirstName = u.First_Name,
              LastName = u.Last_Name,
              RegDate = u.Reg_Date
          }).ToList();
  }
  </code></pre>