title: How to convert MySQL datetime value to google chart api datetime
body: <p>I am trying to convert a value from a datetime field in a MySQL database to a value I can pass on to a Google chart datetime field.</p>
  
  <p>For example a MySQL value: <code>2012-03-05 17:03:56</code>.</p>
  
  <p>Google Chart Api link: <a href="http://code.google.com/apis/chart/interactive/docs/gallery/linechart.html" rel="nofollow">http://code.google.com/apis/chart/interactive/docs/gallery/linechart.html</a></p>
  
  <p>I want to pass this into a column defined like this: <code>data.addColumn('datetime', 't');</code></p>
  
  <p>I want to send it into a row as such: <code>data.addRow([date_value]);</code></p>
  
  <p>I'm not sure how to convert between the two. So what I am asking is <strong>How do I convert MySQL datetime value to a google chart api datetime value?</strong></p>