javascript subtracting date numbers from each other
<p>I'm passing a date in this format; YYYY-MM-DD as a php variable to a javascript function.</p>

<p>however when i get it in the js function - its gone ahead and subtracted the numbers</p>

<pre><code>//php
$today = "2013-05-30";
onclick="myjsfunction($today)"

//js
function myjsfunction(today)
{
alert(today);
}
</code></pre>

<p>this give 1978 (2013 minus 5 minus 30) !</p>

<p>anyone know a way round this?</p>

<p>thanks</p>
