public final class DateUtils
extends java.lang.Object
Constructor and Description |
---|
DateUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isDatePassed(Date date)
Checks whether the given date has passed or not by comparing it with the current device time.
|
static int |
yearsPassedFrom(Date fromDate)
Number of full years passed from the given date.
|
public static int yearsPassedFrom(@NonNull Date fromDate)
public static boolean isDatePassed(@NonNull Date date)
true
if the date has passed, false
otherwise.