use php date string in javascript
<p>i have a date entry in yyyy-mm-dd format in mysql database. Using php i could get the date value</p>

<pre><code>$row = $myresult['date'];
</code></pre>

<p>now i wish to alert this value in javascript</p>

<p>so i tried</p>

<pre><code>var temp_date = &lt;?php echo($row)?&gt;;
alert (temp_date);
</code></pre>

<p>but that didn't work for me. The problem i feel i am facing is to maintain the string format of the datestring, which seems to be getting lost when used in javascript.
Any help?</p>
