title: json encode new Date javascript
body: <p>I have software that is waiting for such an input:</p>
  
  <pre><code>var calEvents = [
      {"name":"2440 Százhalombatta, Bláthy Ottó utca 10","start":new Date('2019-10-20'),"end":new Date('2019-10-20'),"summary":"Ez egy teszt üzenet"},
      {"name":"2440 Százhalombatta, Bláthy Ottó utca 10","start":new Date('2019-10-22'),"end":new Date('2019-10-22'),"summary":"Ez egy teszt üzenet"},
  ];
  </code></pre>
  
  <p>My code is:</p>
  
  <pre><code>&lt;?php
  $return_arr = array();
  $fetch = mysql_query("SELECT * FROM munkalap"); 
  while ($row = mysql_fetch_array($fetch, MYSQL_ASSOC)) {
  
      $row_array['name'] = $row['cim'];
  $row_array['start'] = "new Date("2019-10-20")";
   $row_array['end'] = "new Date("2019-10-20")";
      $row_array['summary'] = $row['cim'];
  
      array_push($return_arr,$row_array);
  }
  echo json_encode($return_arr, JSON_UNESCAPED_UNICODE);
  ?&gt;
  </code></pre>
  
  <p>My mistake is that I cannot pass the date in this format: </p>
  
  <pre><code>new Date("2019-10-20")
  </code></pre>