@Component public final class ISO8601Util extends Object
| Constructor and Description |
|---|
ISO8601Util() |
| Modifier and Type | Method and Description |
|---|---|
String |
fromCalendar(Calendar calendar)
Transform Calendar to ISO8601 string.
|
String |
fromDate(Date date)
Transform java.util.Date to ISO8601 string.
|
String |
now()
Get current date and time formatted as ISO8601 string.
|
Calendar |
toCalendar(String iso8601String)
Transform ISO8601 string to Calendar
|
Date |
toDate(String iso8601String)
Transform ISO8601 string to java.util.Date
|
public String now()
public Calendar toCalendar(String iso8601String) throws ParseException
ParseExceptionpublic Date toDate(String iso8601String) throws ParseException
ParseExceptionCopyright © 2014 Caelum. All Rights Reserved.