title: Google charts data type mismatch while dynamic row adding
body: <p>.. so I'm trying to add data to create a Google Chart via loop &amp; addRow(), like this:</p>
  
  <pre><code>   var splicedData = data.split(","); 
     //the data var is a string with several dates in this format (string): 
     // "day/month/year | hour:minutes:seconds", separated by commas.
  
     for(i = 0; i&lt;splicedData.length-1; i++){
  
      dSplicedData = splicedData[i].split("|"); //split date and hour         
      ddSplicedData = dSplicedData[1].split(":"); // split hh, mm, ss
      dddSplicedData = dSplicedData[0].split("/"); //split dd, mm, yy
  
      chartData.addRow([
  
          [new Date ( parseInt(dddSplicedData[2]), //year
                  parseInt(dddSplicedData[1]), //month
                  parseInt(dddSplicedData[0]))], //day    
          [parseInt(ddSplicedData[0]), parseInt(ddSplicedData[1]), 0]
      ]);
     };
  </code></pre>
  
  <p>The index 0 of addRow() needs a 'datetime/date' datatype , the index 1 needs a 'timeofday'. As far as I understood it, both types are mapped in JS by the Date() method. In conclusion, looking at the API indications I think I've done it right, but I get this error:</p>
  
  <p>"<strong>Error: Type mismatch. Value <em>Wed Jul 20 2016 08:00:00 GMT+0200 (CEST)</em> does not match type datetime in column index 0</strong>",</p>
  
  <p>which is very weird, since the value matches the datatype and it's generated by the Date() method. </p>
  
  <p>Furthermore, I've tried with a Google example, inserting random date manually (not looping a variable value; new Date(2000, 8, 5)), reference <a href="https://developers.google.com/chart/interactive/docs/datesandtimes" rel="nofollow" title="here">here</a>, and it does not accept it either.</p>