title: Make a date with just a year and a month in Scala
body: <p>This is the problem, I get a date in this format :</p>
  
  <p>1987-12-00 and 1987-00-00
  YYYY-MM-DD</p>
  
  <p>I have to parse this String in a Date in scala with just the year and the month. Because sometimes it happens that I do not have the day.</p>
  
  <p>When I'm trying to do that I have exception :</p>
  
  <p>dateHelper.parseDate("1987-00-00")</p>
  
  <p>Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1</p>
  
  <p>Thank you !</p>