You can refer the below code for comparing dates in java: ... compareTo(myDate)<0) System.out.println("Today Date is Lesser than my Date"); ...
確定! 回上一頁