how can change the text string to date object?
<p>i am getting string from server and i need to covert that fetching string in to new date object.. for doing this, i tried this function, but no use, any one can help me to convert strings to date object?</p>

<p>my code is :</p>

<pre><code>var nationZone = {
        getNewYorkLocalTime :  'getTime.php?lat=40.71417&amp;lan=74.00639',
        getLondonLocalTime : 'getTime.php?lat=51.5&amp;lan=0.1166667',
        getChennaiLocalTime :  'getTime.php?lat=13.0833333&amp;lan=80.2833333',
        getBangaloreLocalTime:'getTime.php?lat=12.9833333&amp;lan=77.5833333'

    }

     $.each(nationZone , function(key, value){
        $.get(value, function(response){
            var newdate = $(response).find('localtime').text();
            if(key == "getNewYorkLocalTime"){
                var newyourktime = new Date(newdate);
                newyourktime.getTime()
            }
        });
    });
</code></pre>

<p>but, the newyourktime is showing local time only.. any help please? as well i am getting the response from server is : 17 Nov 2011 18:09:47 - like this.</p>
