public class DateParser
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DateParser.InvalidDateException |
| Constructor and Description |
|---|
DateParser() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getIsoDate(java.util.Date date)
Generate a ISO 8601 date
|
static java.util.Date |
parse(java.lang.String isodate)
Parse the given string in ISO 8601 format and build a Date object.
|
public static java.util.Date parse(java.lang.String isodate)
throws DateParser.InvalidDateException
isodate - the date in ISO 8601 formatDateParser.InvalidDateException - if the date is not validpublic static java.lang.String getIsoDate(java.util.Date date)
date - a Date instance