//Test Case for Date
date = "Dec 15, 1989";
//Split the Date based on a space
String[] splitDate = date.split(" ");
//Based on the format of your date, you know the first index will be the month
month = splitDate[0];
/* This one is more complicated. Based on your format, you will have an extra comma
* at the end of your day String. So, we need to use the substring method to remove
* that comma. We are guarenteed it will be at the end, so we just need to remove
* the last character.
*/
day = splitDate[1];
day = day.substring(0,day.length()-1);
//Lastly, we can get the year String
year = splitDate[2];