How can I convert a Java string to a date in this format - "31 Jan 2022". I've tried the code below.
Date sDate;
SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy");
sDate = format.parse("20/12/2002");
return sDate.toString();
It's giving an output in this format "Fri Jan 30 00:00:00" which is not what I want