public class DateUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Date |
addMonth(Date addTo)
add a month to the date.
|
static int |
differenceInMonths(Calendar beginningDate,
Calendar endingDate)
calculate difference in months between the arguments.
|
static int |
differenceInMonths(Date beginningDate,
Date endingDate)
calculate difference in months between the arguments.
|
public static int differenceInMonths(Date beginningDate, Date endingDate)
beginningDate - endingDate - differenceInMonths(java.util.Calendar, java.util.Calendar)public static int differenceInMonths(Calendar beginningDate, Calendar endingDate)
beginningDate - endingDate - Copyright © 2016 B3partners. All rights reserved.