Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import oracle.jbo.domain.Date;
- public Date getCurrentDateTime() {
- return new Date(new Timestamp(System.currentTimeMillis()));
- }
- public void Method(){
- eventstartDate = (oracle.jbo.domain.Timestamp)this.bndevtfromdate.getValue();
- eventendDate = (oracle.jbo.domain.Timestamp)this.bndevttodate.getValue();
- if (eventstartDate.compareTo(getCurrentDateTime()) < 0) {
- showmessage("Start Date cannot be less than Today's Date", "I");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement