public final class DateHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static Date |
dateAddDays(Date originDate,
int numberOfDays)
Add a number of days to a data.
|
static int |
getSimpleDayDifference(Date date1,
Date date2)
Returns the difference in days of two dates.
|
public static Date dateAddDays(Date originDate, int numberOfDays)
originDate - origin date to add days tonumberOfDays - the number of days to add. If the numberOfDays is
positive then the day is added, otherwise it is removed.public static int getSimpleDayDifference(Date date1, Date date2)
date1 - the first datedate2 - the second dateCopyright © 2015. All rights reserved.