public final class DateConverter extends Object
This is (and will not be) a Java date parsing library and will likely still have limited support for various strings as it’s main use case it to parse from PDF date strings.
| 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. | 
| static String | toISO8601(Calendar cal,
         boolean printMillis)Convert the date to iso 8601 string format. | 
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.public static String toISO8601(Calendar cal)
cal - The date to convert.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.