public class ISO8601DateUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
parse(Date date)
Convert java.util.Date instance into a ISO8601 complaint string.
|
static Date |
toDate(String source)
Convert ISO8601 complaint string into a java.util.Date instance.
|
public static final String parse(Date date)
date
- a java.util.Date instancepublic static final Date toDate(String source) throws IllegalArgumentException
source
- ISO8601 complaint stringIllegalArgumentException
- if the string does not have a correct format