1 2 3 Previous Next 30 Replies Latest reply: Jan 23, 2007 8:52 AM by 791266 Go to original post RSS
      • 30. ISO DateFormate

        I want to convert the ISOdate to the java.util.Date Object.....but i am getting the exception

        Object c = new ISO8601DateConverter().fromString("1994-01-01T00:00:00");
        Converter con=(Converter)c;
        Calendar cal = Calendar.getInstance();

        //Converter cpl=(Converter)c;
        Date d = (Date) con.convert(java.util.Date.class, "006-02-23T12:34:56");

        This trows the following exception,

        Exception in thread "main" java.lang.ClassCastException: java.util.Date
             at com.chordiant.cs.dateformate.DateFormat2.main(DateFormat2.java:51)

        any help or suggesion is welcome
        1 2 3 Previous Next