title: Scala - Convert String to Date in Spark RDD
body: <p>I have a dataset which I am reading into a spark RDD where date is represented in the format of "September 2016" and also "20010901" which I need to convert to a date format while creating an RDD using a Case Class</p>
  
  <p>For example,
  case class Bank(age: Integer, job: String, marital: String, education: String, BirthDate: "<strong>20010901</strong>", FiscalMonth: "<strong>September 2016</strong>")</p>
  
  <p>How do I convert the "BirthDate" and "FiscalMonth" to a Date format recognizable to Scala as a Date where the Date might be of either format?</p>
  
  <p>I need to later pull this into spark sql and run a few queries on it.</p>