Converting String to java.util.Date
843833Jun 18 2001 — edited Jun 18 2001Hello,
I need to convert String to java.util.Date.
I try to using parse method,but always getting a Parsing Exception.Here the code is
SimpleDateFormat dateFormat=new SimpleDateFormat("DD-MON-YYYY");
try{
java.util.Date presDate=dateFormat.parse("01-JAN-2000");
}catch(ParseException pex){System.out.println("Parsing Exception");}
Please help me to get rid of this exception
regards
Patil DB