Package snap.util
Class DateUtils
java.lang.Object
snap.util.DateUtils
Some helper methods for Date.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getAgeString
(Date aDate1, Date aDate2) Returns an age string between two dates.static Calendar
getCalendar
(Date aDate) Returns a calendar for given date.static int
getMonthsBetween
(Date aDate1, Date aDate2) Returns the number of months between two dates.static int
getYearsBetween
(Date aDate1, Date aDate2) Returns the number of years between two dates.
-
Constructor Details
-
DateUtils
public DateUtils()
-
-
Method Details
-
getYearsBetween
Returns the number of years between two dates. -
getMonthsBetween
Returns the number of months between two dates. -
getAgeString
Returns an age string between two dates. -
getCalendar
Returns a calendar for given date.
-