public final class DateUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Date |
fromISO8601(String pDateString)
Parse an ISO-8601 string into an date object
|
static String |
toISO8601(Date pDate)
Convert a given date to an ISO-8601 compliant string
representation for the default timezone
|
static String |
toISO8601(Date pDate,
TimeZone pTimeZone)
Convert a given date to an ISO-8601 compliant string
representation for a given timezone
|
public static Date fromISO8601(String pDateString)
pDateString
- date string to parseIllegalArgumentException
- if the provided string does not conform to ISO-8601public static String toISO8601(Date pDate)
pDate
- date to convertCopyright © 2016. All rights reserved.