I have this date/2 word parsed from the database randomly:
JAN 2012
FEB 2013
MAR 2014
etc.
I want to make the month in variable a and the year in variable b.
The date is parsed in a span as such:
<span class="rt_item">DEC 2012</span>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use regex for this:
Otherwise, use
.split(" "):Both methods demonstrated in this fiddle.