How to covert a string to time stamp in java? : 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");

I am getting below exception 

> java.text.ParseException: Unparseable date: "16-MAY-2018 09:30:22"

I have searched over stackoverflow and many other sites, referred kind of questions, but didn't find a solution for this.