To compare two jbo date programatically, l convert jbo date to sql date and then compare sql dates
Thanks
oracle.jbo.domain.Date jboDate1 = new oracle.jbo.domain.Date();
oracle.jbo.domain.Date jboDate2 = new oracle.jbo.domain.Date();
java.sql.Date sqlDate1 =jboDate1.dateValue();
java.sql.Date sqlDate2 =jboDate2.dateValue();
//Compare sql Date
if (sqlDate1.before(sqlDate2 )) {
//Write Your Code
}
Thanks
No comments:
Post a Comment