Modifier and Type | Field and Description |
---|---|
static String |
PATTERN_ASCTIME
Deprecated.
Date format pattern used to parse HTTP date headers in ANSI C
asctime() format. |
static String |
PATTERN_RFC1036
Deprecated.
Date format pattern used to parse HTTP date headers in RFC 1036 format.
|
static String |
PATTERN_RFC1123
Deprecated.
Date format pattern used to parse HTTP date headers in RFC 1123 format.
|
public static final String PATTERN_RFC1123
public static final String PATTERN_RFC1036
public static final String PATTERN_ASCTIME
asctime()
format.public static Date parseDate(String dateValue) throws DateParseException
dateValue
- the date value to parseDateParseException
- if the value could not be parsed using any of the
supported date formatspublic static Date parseDate(String dateValue, Collection dateFormats) throws DateParseException
dateValue
- the date value to parsedateFormats
- the date formats to useDateParseException
- if none of the dataFormats could parse the dateValueCopyright © 2016 Internet2. All rights reserved.