title: Alternative to toLocaleString() for chrome browser
body: <pre><code> function tolocal(str)
   {
   var date, split, dSplit, tSplit, d, raw;
  date = '';
  split = str.split(' ');
  if (split.length === 2) {
      dSplit = split[0].split('-');
      tSplit = split[1].split(':');
  }
  raw = d.toLocaleString().split(' GMT')[0];
  
   return raw.substring(raw.indexOf(&quot;, &quot;)+2, raw.lastIndexOf(':')) + &quot; &quot; + raw.substring(raw.length-2,raw.length)
   }
  </code></pre>
  <p>The above code, works well in ie browser where I get the output in the following format.</p>
  <p><strong>November 13,2012 10:15 AM</strong></p>
  <p>But I am not able to achieve the same in the chrome browser. Is there any other function which will help me achieve the same output?  <code>date.toUTCString()</code> provides the same result but I am not sure how different it is to <code>toLocaleString()</code> in terms of functionality.</p>
  <p>Thanks in advance.</p>