public class DateUtil
extends java.lang.Object
Constructor and Description |
---|
DateUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatIsoDate(java.util.Date date)
Formats a date to an ISO date representation.
|
static java.lang.String |
formatIsoDateTime(java.util.Date date)
Formats a date and time to an ISO datetime representation
(without timezone).
|
static java.lang.String |
formatIsoTime(java.util.Date date)
Formats a time to an ISO time representation (without
timezone).
|
static java.util.Date |
parseIsoDate(java.lang.String str)
Converts an ISO date or datetime string to a date object.
|
public static java.util.Date parseIsoDate(java.lang.String str)
str
- the string to convertpublic static java.lang.String formatIsoDate(java.util.Date date)
date
- the date to convertpublic static java.lang.String formatIsoDateTime(java.util.Date date)
date
- the date and time to convertpublic static java.lang.String formatIsoTime(java.util.Date date)
date
- the date and time to convert