How to get the day diff between currday and dateposted? Thanks.
java.util.Date currdate = new java.util.Date(); //today
java.util.Date dateposted = rs1.getDate("DatePosted");
Also what If I use
Calendar cal2 = Calendar.getInstance(); to get today's date. How to get the day diff between today and dateposted?
Start Free Trial