Here is my code,
SimpleDateFormat format = new SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\"); Date dft = (Date) format.parse(\"16-MAY-2018 09:30:22:000\");
Use this pattern: dd-MMM-yyyy HH:mm:ss