public class DateUtil
extends java.lang.Object
Constructor and Description |
---|
DateUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.Date |
addMonthsToDate(java.util.Date date,
int months) |
static int |
addMonthsToIntDate(int date,
int months) |
static long |
addMonthsToTimestamp(long timestamp,
int months) |
static int |
dateToInt(java.util.Date date) |
static java.lang.String |
dateToString(java.util.Date date,
java.lang.String format) |
static java.util.Date |
intToDate(int intDate) |
static void |
main(java.lang.String[] args) |
static java.util.Date |
stringToDate(java.lang.String strDate,
java.lang.String format) |
public static java.lang.String dateToString(java.util.Date date, java.lang.String format)
public static java.util.Date stringToDate(java.lang.String strDate, java.lang.String format)
public static int dateToInt(java.util.Date date)
public static java.util.Date intToDate(int intDate)
public static long addMonthsToTimestamp(long timestamp, int months)
public static java.util.Date addMonthsToDate(java.util.Date date, int months)
public static int addMonthsToIntDate(int date, int months)
public static void main(java.lang.String[] args)