Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

unparseable date error in java

String v_date_str="Sun Mar 06 11:28:16 IST 2011";
        DateFormat formatter;
        formatter = new SimpleDateFormat("dd-MMM-yyyy");
        Date date_temp=null;
        try {
            date_temp = (Date) formatter.parse(v_date_str);
        } catch (ParseException ex) {
            Logger.getLogger(Attendance_Calculation.class.getName()).log(Level.SEVERE, null, ex);
        }
        System.out.println("output: "+date_temp);
 
PREVIOUS NEXT
Tagged: #unparseable #date #error #java
ADD COMMENT
Topic
Name
4+3 =