public final class DateConverter extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static Calendar | toCalendar(COSString text)Returns the Calendar for a given COS string containing a date,
 or  nullif it cannot be parsed. | 
| static Calendar | toCalendar(String text)Returns the Calendar for a given string containing a date,
 or  nullif it cannot be parsed. | 
| static String | toISO8601(Calendar cal)Converts the date to ISO 8601 string format:
     yyyy-mm-ddThh:MM:ss#hh:mm    (where '#" is '+' or '-'). | 
| static String | toString(Calendar cal)Converts a Calendar to a string formatted as:
     D:yyyyMMddHHmmss#hh'mm'  where # is Z, +, or -. | 
public static String toString(Calendar cal)
cal - The date to convert to a string. May be null.
 The DST_OFFSET is included when computing the output time zone.public static String toISO8601(Calendar cal)
cal - The date to convert.  Must not be null.
 The DST_OFFSET is included in the output value.public static Calendar toCalendar(COSString text)
null if it cannot be parsed.
 The returned value will have 0 for DST_OFFSET.text - A COS string containing a date.null if it cannot be parsed.public static Calendar toCalendar(String text)
null if it cannot be parsed.
 The returned value will have 0 for DST_OFFSET.text - A COS string containing a date.null if it cannot be parsed.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.