I have a:
String fromUser = "2002-10-29";
I would like to output it to Date type (Java.sql.Date) without dashes, and just numbers.
20021029 // yyyyMMdd
How do I achieve it? Thank you,
I've tried using DateFormat, SimpleDateFormat and most of them give me back yyyy-MM-dd.
The documentation in Oracle for Java.util.Date mentioned that the Constructor
Date(int year, int month, int day)
is already deprecated.