SyntaxFix
Write A Post
Hire A Developer
Questions
DateTime dt = new DateTime(laterDate); DateTime newDate = dt.minus( new DateTime ( previousDate ).getMillis()); System.out.println("No of days : " + newDate.getDayOfYear() - 1 );