public class DateUtil_IW
extends Object
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Date date1,
Date date2) |
boolean |
equals(Date date1,
Date date2) |
String |
formatDate(String fromPattern,
String dateString,
Locale locale) |
String |
getCurrentDate(String pattern,
Locale locale) |
String |
getCurrentDate(String pattern,
Locale locale,
TimeZone timeZone) |
String |
getDate(Date date,
String pattern,
Locale locale) |
String |
getDate(Date date,
String pattern,
Locale locale,
TimeZone timeZone) |
int |
getDaysBetween(Date date1,
Date date2) |
int |
getDaysBetween(Date date1,
Date date2,
TimeZone timeZone) |
static DateUtil_IW |
getInstance() |
DateFormat |
getISO8601Format() |
DateFormat |
getISOFormat() |
DateFormat |
getISOFormat(String text) |
DateFormat |
getUTCFormat() |
DateFormat |
getUTCFormat(String text) |
boolean |
isFormatAmPm(Locale locale) |
Date |
newDate() |
Date |
newDate(long date) |
long |
newTime() |
Date |
parseDate(String dateString,
Locale locale) |
Date |
parseDate(String pattern,
String dateString,
Locale locale) |
public static DateUtil_IW getInstance()
public int compareTo(Date date1, Date date2)
public boolean equals(Date date1, Date date2)
public String formatDate(String fromPattern, String dateString, Locale locale) throws ParseException
ParseException
public String getCurrentDate(String pattern, Locale locale)
public String getCurrentDate(String pattern, Locale locale, TimeZone timeZone)
public String getDate(Date date, String pattern, Locale locale)
public String getDate(Date date, String pattern, Locale locale, TimeZone timeZone)
public int getDaysBetween(Date date1, Date date2)
public int getDaysBetween(Date date1, Date date2, TimeZone timeZone)
public DateFormat getISO8601Format()
public DateFormat getISOFormat()
public DateFormat getISOFormat(String text)
public DateFormat getUTCFormat()
public DateFormat getUTCFormat(String text)
public boolean isFormatAmPm(Locale locale)
public Date newDate()
public Date newDate(long date)
public long newTime()
public Date parseDate(String dateString, Locale locale) throws ParseException
ParseException
public Date parseDate(String pattern, String dateString, Locale locale) throws ParseException
ParseException