javascript date query
<p>i'm try to point so dots on a graph and label them with a date... its working but having problems converting date string. the script i'm using is below.  x is the time stamp but when used i get NaN values when replaced with  1268956800000 for example it works fine.</p>

<p>i can see where i'm going wrong i think x is not a value when called? but javascript is not a strong point please help</p>

<pre><code>      if (item) {
            if (previousPoint != item.datapoint) {
                previousPoint = item.datapoint;

                $("#tooltip").remove();
                var x = item.datapoint[0].toFixed(0),
                    y = item.datapoint[1].toFixed(0);

                 d = new Date(x);
                 curr_date = d.getDate();
                 curr_month = d.getMonth();
                 curr_year = d.getFullYear();   

                showTooltip(item.pageX, item.pageY,
                            item.series.label + " qty " + y + curr_date + " / " + curr_month + " / " + curr_year);
            }

    }
</code></pre>
