Converting date in text input string into other format javascript
<p>The date input I have is for e.g.</p>

<pre><code>var startDate = "January 16, 2013"
</code></pre>

<p>From older posts I tried to dig into, I know that I might need to use date.js from <a href="http://www.javascripttoolbox.com/lib/date/documentation.php" rel="nofollow">http://www.javascripttoolbox.com/lib/date/documentation.php</a></p>

<p>So I had an extra line in my html to fire it up</p>

<pre><code>&lt;script src="http://prestigeswimming.com/wp-content/plugins/cred-frontend-editor/date.js" type="text/javascript"&gt;&lt;/script&gt; 
&lt;script type="text/javascript"&gt;
   var startDate = "January 16, 2013"
   alert(startDate.getMonthName());
&lt;/script&gt;
</code></pre>

<p>Am I supposed to do this to get an alert box saying "January"?</p>
