Converting string into different variables?
<p>I'm working with a function that outputs a string that is always formatted "Month Day, Year".
With this, I'm looking to be able to convert the string into three variables. One for month, one for day, and one for year. The project is jQuery based, so if there is a more elegant solution that way, I would appreciate it.</p>

<p>Update:
Here is some of the code that i'm using. Before today, I wrote a function that used select options to choose the month, date, and year. Now I've changed to a simpler solution that uses a single text input in the format "Month Day, Year".</p>

<p>So now when I submit the form, instead of being able to use</p>

<pre><code>var sm = smonth.value;
var sd = sday.value;
var sy = syear.value;
</code></pre>

<p>I only have one variable as</p>

<pre><code>var sdate = sdate.value;
</code></pre>

<p>And what I'd like to do is be able to convert the sdate value (which is just the Month Day, Year string), back to the sm (Selected Month), sd (Selected Day), and sy (Selected Year) values.  </p>
