i have a date entry in yyyy-mm-dd format in mysql database. Using php i could get the date value
$row = $myresult['date'];
now i wish to alert this value in javascript
so i tried
var temp_date = <?php echo($row)?>;
alert (temp_date);
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?