Is it possible to convert string
"20110210"
to a java.sql.Date
2011-02-10?
I've tried SimpleDateFormat
and I get java.text.ParseException: Unparseable date: "20110210"
What am I doing wrong?
i had new SimpleDateFormat("yyyy-MM-dd") instead of new SimpleDateFormat("yyyyMMdd")