How to split the date , time using javascript?
<p>How to split the date,time using java script ? I am getting date,time 2010-05-04 20:13:12.0.But i need only date.</p>

<p>date format mm/dd/yyyy</p>

<pre><code>var cdate = gridline[i=1]["CDATE"];
</code></pre>

<p>Now i need cdate as mm/dd/yyyy only.    </p>

<p>Please help me.</p>
