usage of Date.parse
<p>I am trying to display a graph with  HighCharts en i got stacked with generating series to display. What i have is series of timestamps in database. I want to display difference between events so on Xaxis i get time between events (current t2 - previous t2) en on Y I get time. So now i wanted to use Date.parse to get seconds but its returning nothing. Am I using wrong Date.parse function? because when i put int number it displays a flat line. </p>

<pre><code>    $i = 0;     
    foreach ($metingen as $index =&gt; $m) { 
        if($i != 0) $js .= ',';
        $js .= "{name: '";
        $js .= "Event time " . substr($m[0]['t1'],0,16);
        $js .= "', data: [";
        $j = 0;
        foreach ($m as $ms) {
            if($j != 0) $js .= ',';
            $js .= Date.parse("2012-01-30 18:21:49")-
                            Date.parse("2012-01-30 18:21:47";//$ms['antaal'];
            $j++;
        }
        $js .=  "]}";
        $i++;
    }
</code></pre>

<p>database query returns time in this format:</p>

<pre><code>t1                  antaal  t2
2012-01-30 18:21:41 | 0 |   2012-01-30 18:21:42
2012-01-30 18:21:41 | 1 |   2012-01-30 18:21:43
2012-01-30 18:21:41 | 2 |   2012-01-30 18:21:53
2012-01-30 18:21:41 | 3 |   2012-01-30 18:21:59
</code></pre>
