org.apache.pdfbox.util
public class DateConverter extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Calendar |
toCalendar(COSString date)
This will convert a string to a calendar.
|
static java.util.Calendar |
toCalendar(java.lang.String date)
This will convert a string to a calendar.
|
static java.lang.String |
toISO8601(java.util.Calendar cal)
Convert the date to iso 8601 string format.
|
static java.lang.String |
toString(java.util.Calendar date)
This will convert the calendar to a string.
|
public static java.lang.String toString(java.util.Calendar date)
date
- The date to convert to a string.public static java.util.Calendar toCalendar(COSString date) throws java.io.IOException
date
- The string representation of the calendar.java.io.IOException
- If the date string is not in the correct format.public static java.util.Calendar toCalendar(java.lang.String date) throws java.io.IOException
date
- The string representation of the calendar.java.io.IOException
- If the date string is not in the correct format.public static java.lang.String toISO8601(java.util.Calendar cal)
cal
- The date to convert.