Javascript replace hypens with space
<p>I am getting this value from DatePicker</p>

<pre><code>var datepickr = 'Jun-29-2011';
</code></pre>

<p>I want to replace underscores(-) with space .</p>

<p>I tried this way , but it isn't working </p>

<pre><code>var b = datepickr.replace("-",' ');
</code></pre>
