unparseable date error in java

Solutions on MaxInterview for unparseable date error in java by the best coders in the world

showing results for - "unparseable date error in java"
Giuseppe
22 Feb 2016
1String v_date_str="Sun Mar 06 11:28:16 IST 2011";
2        DateFormat formatter;
3        formatter = new SimpleDateFormat("dd-MMM-yyyy");
4        Date date_temp=null;
5        try {
6            date_temp = (Date) formatter.parse(v_date_str);
7        } catch (ParseException ex) {
8            Logger.getLogger(Attendance_Calculation.class.getName()).log(Level.SEVERE, null, ex);
9        }
10        System.out.println("output: "+date_temp);