Wednesday, October 17, 2012

Logic to convert jbo date to util date

        //logic to convert jbo date to util date

        oracle.jbo.domain.Date oracleDate = empRow.getHireDate();
        java.sql.Date javaSqlDate = oracleDate.dateValue();
        long javaMilliSeconds = javaSqlDate.getTime();
        java.util.Date javaUtilDate = new java.util.Date(javaMilliSeconds);

        empDTO.setHire_date(javaUtilDate);

No comments: