Is there a way to parse a date with a pattern containing some "special char" or "jolly char" as separator with standard SimpleDateFormat? I want to parse my date using the patterns "yyyy MM dd"
, "yyyy/MM/dd"
, "yyyy-MM-dd"
and so on..., so I'm searching something like "yyyy*MM*dd" where * is a special character meanings 'a random character'
SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd");
Date d = fmt.parse(stringdate);