ADF : Date Conversion[sysdate, utilDate, SqlDate, oracle.jbo.domain]
String To jboDate:
if(this.getId1().getValue()!=null){
effDt = (java.util.Date)this.getId1().getValue();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String effectiveDateString = sdf.format(effDt);
effectiveDate = java.sql.Date.valueOf(effectiveDateString);
oracle.jbo.domain.Date domainDate =(new new oracle.jbo.domain.Date(effectiveDate))
}
--------------------------------
SysDate To StringDate:
DateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");
java.util.Date date = new java.util.Date();
String date1=dateFormat.format(date);
--------------------------------
StringDate To UtilDate:
java.util.Date utilDate = dateFormat.parse(date1);
---------------------------------
SqlDate To jboDate:
java.sql.Date sqlDate = new java.sql.Date(utilDate.getTime());
jboDate = new oracle.jbo.domain.Date(sqlDate);