title: How to parse ambiguous String into Date?
body: <p>I'm trying to figure out a "simple" way of parsing a String into a Date Object.</p>
  
  <p>The String can be either yyyyMMdd, yyyyMMddHHmm or yyyyMMddHHmmSS. </p>
  
  <p>Currently, I'm looking at the length of the String, and creating a DateParser depending on the length. Is there a more elegant way of doing this?</p>