Extracting time from the date respone
<pre><code>Date.parseWeird = Date.prototype.parseWeird = function (d) {
    return new Date(parseInt(d.replace(/[^\-\d]/g, ""), 10));
};

var newDate = Date.parseWeird("\/Date(1317847200000-0400)\/");

document.write(newDate);
</code></pre>

<p>This returns me <code>Thu Oct 06 2011 02:10:00 GMT+0530 (India Standard Time)</code> </p>

<p>I want to extract this <code>02:10:00</code> and convert this into time like this <code>9:30 P.M or A.M</code></p>
