public class DateParser extends Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
DateParser.InvalidDateException |
| Constructor | Description |
|---|---|
DateParser() |
| Modifier and Type | Method | Description |
|---|---|---|
static String |
getIsoDate(Date date) |
Generate a ISO 8601 date
|
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 DateParser.InvalidDateException
isodate - the date in ISO 8601 formatDateParser.InvalidDateException - if the date is not valid