title: How do I format datetime column in jQuery Datable(server side)
body: <p>I am implementing jQuery server-side datatable. I have 1 date column and 2 datetime columns. All 3 are displaying on datatable in a wrong format.</p>
  
  <p>Received Date: /Date(1373947200000)/  (Date)</p>
  
  <p>Created Date: /Date(1374845903000)/   (Datetime)     </p>
  
  <p>Updated Date: /Date(1374845903000)/  (Datetime)</p>
  
  <p>How can I display in a correct format?</p>
  
  <p>.cshtml</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table id="disparityForm" class="ui celled table" style="width:100%"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Status&lt;/th&gt;
              &lt;th&gt;Received Date&lt;/th&gt;
              &lt;th&gt;Member ID&lt;/th&gt;
              &lt;th&gt;First Name&lt;/th&gt;
              &lt;th&gt;Last Name&lt;/th&gt;
              &lt;th&gt;Created User&lt;/th&gt;
              &lt;th&gt;Created Date&lt;/th&gt;
              &lt;th&gt;Updated User&lt;/th&gt;
              &lt;th&gt;Updated Date&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tfoot&gt;
          &lt;tr&gt;
              &lt;th&gt;Status&lt;/th&gt;
              &lt;th&gt;Received Date&lt;/th&gt;
              &lt;th&gt;Member ID&lt;/th&gt;
              &lt;th&gt;First Name&lt;/th&gt;
              &lt;th&gt;Last Name&lt;/th&gt;
              &lt;th&gt;Created User&lt;/th&gt;
              &lt;th&gt;Created Date&lt;/th&gt;
              &lt;th&gt;Updated User&lt;/th&gt;
              &lt;th&gt;Updated Date&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/tfoot&gt;
  &lt;/table&gt;
  
  &lt;link href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/semantic.min.css" rel="stylesheet" /&gt;
  &lt;link href="~/Content/DataTables/media/css/dataTables.semanticui.min.css" rel="stylesheet" /&gt;
  
  @section scripts{
      &lt;script src="~/Scripts/DataTables/media/js/jquery.dataTables.min.js"&gt;&lt;/script&gt;
      &lt;script src="~/Scripts/DataTables/media/js/dataTables.semanticui.min.js"&gt;&lt;/script&gt;
      &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.0/semantic.min.js"&gt;&lt;/script&gt;
  
      &lt;script&gt;
          $(document).ready(function () {
              $("#disparityForm").DataTable({
                  "ajax": {
                      "url": "/DisprtyForm/GetList",
                      "type": "POST",
                      "datatype": "json"
                  },
                  "columns": [
                      { "data": "STS", "name": "STS" },
                      { "data": "RECEIVED_DATE", "name": "RECEIVED_DATE" },
                      { "data": "MBR_AGP_ID_NUM", "name": "MBR_AGP_ID_NUM" },
                      { "data": "MBR_FST_NME", "name": "MBR_FST_NME" },
                      { "data": "MBR_LST_NME", "name": "MBR_LST_NME" },
                      { "data": "CREATE_USR_ID", "name": "CREATE_USR_ID" },
                      { "data": "AUDIT_CREATE_DT", "name": "AUDIT_CREATE_DT" },
                      { "data": "UPDT_USR_ID", "name": "UPDT_USR_ID" },
                      { "data": "AUDIT_UPDT_DT", "name": "AUDIT_UPDT_DT" },
                  ],
  
                  "serverSide": "true",
                  "order": [0, "asc"],
                  "processing": "true",
                  "language": {
                      "processing": "processing...Please wait"
                  }
              });
          })
  
      &lt;/script&gt;
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Below is the c# Code that return json format. </p>
  
  <pre><code> [HttpPost]
      public ActionResult GetList()
      {
          //Server side Parameters
          int start = Convert.ToInt32(Request["start"]);
          int length = Convert.ToInt32(Request["length"]);
          string searchValue = Request["search[value]"];
          string sortColumnName = Request["columns[" + Request["order[0][column]"] + "][Name]"];
          string sortDirection = Request["order[0][dir]"];
  
  
          List&lt;DISPRTY_FORM&gt; disprtyFormList = new List&lt;DISPRTY_FORM&gt;();
          using (DBModel db = new DBModel())
          {
              disprtyFormList = db.DISPRTY_FORM.ToList&lt;DISPRTY_FORM&gt;();
              int totalrows = disprtyFormList.Count;
  
              //Todo filtering
  
              int totalRowsAfterFiltering = disprtyFormList.Count;
  
              //sorting
              disprtyFormList = disprtyFormList.OrderBy(sortColumnName + " " + sortDirection).ToList&lt;DISPRTY_FORM&gt;();
  
              //paging
              disprtyFormList = disprtyFormList.Skip(start).Take(length).ToList&lt;DISPRTY_FORM&gt;();
  
              var jsonResult = Json(new { data = disprtyFormList, draw = Request["draw"], recordsTotal = totalrows, recordsFiltered = totalRowsAfterFiltering }, JsonRequestBehavior.AllowGet);
              jsonResult.MaxJsonLength = int.MaxValue;
  
              return jsonResult;
          }
      }
  </code></pre>