Package com.liferay.portal.kernel.util
Class DateUtil_IW
Object
com.liferay.portal.kernel.util.DateUtil_IW
- Author:
- Brian Wing Shun Chan
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
formatDate
(String fromPattern, String dateString, Locale locale) getCurrentDate
(String pattern, Locale locale) getCurrentDate
(String pattern, Locale locale, TimeZone timeZone) int
getDaysBetween
(Date date1, Date date2) int
getDaysBetween
(Date date1, Date date2, TimeZone timeZone) static DateUtil_IW
getISOFormat
(String text) getUTCFormat
(String text) int
boolean
isFormatAmPm
(Locale locale) newDate()
newDate
(long date) long
newTime()
-
Method Details
-
getInstance
-
compareTo
-
equals
-
formatDate
public String formatDate(String fromPattern, String dateString, Locale locale) throws ParseException - Throws:
ParseException
-
getCurrentDate
-
getCurrentDate
-
getDate
-
getDate
-
getDaysBetween
-
getDaysBetween
-
getISO8601Format
-
getISOFormat
-
getISOFormat
-
getUTCFormat
-
getUTCFormat
-
getYear
-
isFormatAmPm
-
newDate
-
newDate
-
newTime
public long newTime() -
parseDate
- Throws:
ParseException
-
parseDate
- Throws:
ParseException
-