public class ISO8601DateFormat
extends java.lang.Object
sYYYY-MM-DDThh:mm:ss.sssTZDwhere:
Constructor and Description |
---|
ISO8601DateFormat() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
format(java.util.Date isoDate)
Format date into ISO format
|
static java.util.Date |
parse(java.lang.String isoDate)
Parse date from ISO formatted string
|
public static java.lang.String format(java.util.Date isoDate)
isoDate
- the date to formatpublic static java.util.Date parse(java.lang.String isoDate) throws java.lang.Exception
isoDate
- ISO string to parseorg.alfresco.error.AlfrescoRuntimeException
- if the parse failedjava.lang.Exception