title: Wijmo charts - passing in dates from PHP
body: <p>I'm using Wijmo, a jQuery library that includes a few chart plugins. When working with dates, data is specified using the following format:</p>
  
  <pre><code>seriesList: [{
      label: "Q1",
      legendEntry: true,
          data: {
              x: [new Date(1978, 0, 1), new Date(1980, 0, 1), new Date(1981, 0, 1), new Date(1982, 0, 1), new Date(1983, 0, 1)], 
              y: [12, 21, 9, 29, 30]
          },
      offset: 0
  }]
  </code></pre>
  
  <p>Notice the <code>x</code> axis of the <code>data</code> object, all of the items are instances of <code>Date</code>. </p>
  
  <p>When passing this data down in a JSON object from PHP the dates aren't in a format that Wijmo can handle, so I pass a string down and instantiate <code>Date</code> with that string.</p>
  
  <p>However, now I'm working with more complex charts I want to get away from having to loop through the data in JavaScript to change the date string to a <code>Date</code> object.</p>
  
  <p>So here's my question: is it possible to pass a date down from PHP to JavaScript, in a format that JavaScript (read: Wijmo) will understand without the need to convert? If not, can anyone think of an alternative solution that might solve my problem.</p>