public class ISO8601Date extends Object
| Constructor and Description |
|---|
ISO8601Date() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getIsoDate(Date date)
Generate a ISO 8601 date
|
static String |
getIsoDateTime(Date date)
Generate a ISO 8601 date time without timezone
|
static String |
getIsoDateTimeZone(Date date)
Generate a ISO 8601 date time with timezone
|
static String |
getIsoTime(Date date)
Generate a ISO 8601 time
|
static String |
getIsoTimeZone(Date date)
Generate a ISO 8601 time
|
static Date |
parse(String isodate)
Parse the given string in ISO 8601 format and build a Date
object.
|
public static Date parse(String isodate) throws NumberFormatException
isodate - the date in ISO 8601 formatNumberFormatException - if the date is not validpublic static String getIsoDate(Date date)
date - a Date instancepublic static String getIsoDateTime(Date date)
date - a Date instancepublic static String getIsoDateTimeZone(Date date)
date - a Date instancepublic static String getIsoTime(Date date)
date - a Date instanceCopyright © 2011. All Rights Reserved.