2011-08-04 9 views

答えて

5

だけDateTimeDateを変換しDays#daysBetween()を使用しています。 DateTimeは、ミリ秒単位の時間であるconstructorを有し、Dateは、getterを有する。

DateTime lastDate = new DateTime(Obj.getAccepted().getTime()); 
DateTime currentDate = new DateTime(); 
int days = Days.daysBetween(lastDate, currentDate).getDays(); 
+0

ありがとうございました。それは私の問題を解決する。 – dhn83

関連する問題