public class DateConverter extends Object
Modifier | Constructor and Description |
---|---|
protected |
DateConverter()
According to check-style, Utility classes should not have a public or default constructor.
|
Modifier and Type | Method and Description |
---|---|
static Calendar |
toCalendar(String date)
This will convert a string to a calendar.
|
static String |
toISO8601(Calendar cal)
Convert the date to iso 8601 string format.
|
protected DateConverter()
public static Calendar toCalendar(String date) throws IOException
date
- The string representation of the calendar.IOException
- If the date string is not in the correct format.Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.