public class DateUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
STR_DAY |
static String |
STR_HMS |
static String |
STR_LOCALE |
static String |
STR_LOCALE_PAUSE |
static String |
STR_TIME |
static String |
STR_YMD |
static String |
STR_YMD_SLASH |
static String |
STR_YMD_SLASH_LOCALE |
static String |
STR_YMDHM_SLASH |
static String |
STR_YMDHM0_SLASH |
static String |
STR_YMDHM59_SLASH |
static String |
STR_YMDHMS_SLASH |
static String |
STR_YMDHMS_SLASH_LOCALE |
Constructor and Description |
---|
DateUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
defaultTimeZone() |
static String |
formatDAY(Date date) |
static String |
formatHMS(Date date) |
static String |
formatTIME(Date date) |
static String |
formatYMD(Date date) |
static String |
formatYMDHM0WithSlash(Date date) |
static String |
formatYMDHM59WithSlash(Date date) |
static String |
formatYMDHMSWithSlash(Date date) |
static String |
formatYMDHMSWithSlashLocale(Date date) |
static String |
formatYMDHMWithSlash(Date date) |
static String |
formatYMDWithSlash(Date date) |
static String |
formatYMDWithSlashLocale(Date date) |
static Date |
getDate(String text) |
static Date |
getDayBefore(Date date,
int n) |
static Date |
getMinuteAfter(Date date,
int n) |
static Date |
getMinuteBefore(Date date,
int n) |
static Date |
getSecondBefore(Date date,
int n) |
static boolean |
isSameDay(Date date1,
Date date2) |
static Date |
parseDateTextWithSlash(String dateText) |
public static final String STR_DAY
public static final String STR_HMS
public static final String STR_LOCALE
public static final String STR_LOCALE_PAUSE
public static final String STR_TIME
public static final String STR_YMD
public static final String STR_YMD_SLASH
public static final String STR_YMD_SLASH_LOCALE
public static final String STR_YMDHM0_SLASH
public static final String STR_YMDHM59_SLASH
public static final String STR_YMDHMS_SLASH
public static final String STR_YMDHM_SLASH
public static final String STR_YMDHMS_SLASH_LOCALE
public static String defaultTimeZone()
public static Date getDate(String text) throws ParseException
ParseException
public static Date parseDateTextWithSlash(String dateText) throws ParseException
ParseException