JavaScript Date.parse return NaN in Mozilla Browser
<p>Mozilla browser I have tried get my time-stamp in JavaScript like <code>strtotime</code> in php</p>

<p>My Code:</p>

<pre><code>//var start_date = data.result[0].start_date;
var start_date = "2011-01-26 13:51:50";
var d = Date.parse(start_date) / 1000;
console.log(d);
// 1296030110
</code></pre>

<p>Above code is working fine in chrome. But not working in the Mozilla Browser. I am getting <code>NaN</code> value. Please help me.</p>

<p>After search in google I find one solution to add <code>T</code> between the date and time. so I have added. I am getting the output but the output is not the same in both browser.</p>

<pre><code>var start_date = "2011-01-26T13:51:50";
var d = Date.parse(start_date) / 1000;
console.log(d);
//Mozilla = 1296030110
//Chrome  =  1296044910
</code></pre>