Deprecated
(4.3) Use org..
| Modifier and Type | Field and Description |
|---|---|
| public static final TimeZone | |
| public static final String | PATTERN_ASCTIME
Date format pattern used to parse HTTP date headers in ANSI C
|
| public static final String | PATTERN_RFC1036
Date format pattern used to parse HTTP date headers in RFC 1036 format. |
| public static final String | PATTERN_RFC1123
Date format pattern used to parse HTTP date headers in RFC 1123 format. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: An RFC 1123 formatted date string.The date to format. date)Formats the given date according to the RFC 1123 pattern. |
| public static String | Returns: A formatted date string.The date to format. date, final String The pattern to use for formatting the date. pattern)Formats the given date according to the specified pattern. |
| public static Date | |
| public static Date | |
| public static Date | Returns: the parsed datethe date value to parse dateValue, final String[] the date formats to use dateFormats, final Date During parsing, two digit years will be placed in the range
startDate)startDate to startDate + 100 years. This value may
be null. When null is given as a parameter, year
2000 will be used.Parses the date value using the given date formats. |
| GMT | back to summary |
|---|---|
| public static final TimeZone GMT | |
| PATTERN_ASCTIME | back to summary |
|---|---|
| public static final String PATTERN_ASCTIME Date format pattern used to parse HTTP date headers in ANSI C
| |
| PATTERN_RFC1036 | back to summary |
|---|---|
| public static final String PATTERN_RFC1036 Date format pattern used to parse HTTP date headers in RFC 1036 format. | |
| PATTERN_RFC1123 | back to summary |
|---|---|
| public static final String PATTERN_RFC1123 Date format pattern used to parse HTTP date headers in RFC 1123 format. | |
| DateUtils | back to summary |
|---|---|
| private DateUtils() This class should not be instantiated. | |
| formatDate | back to summary |
|---|---|
| public static String formatDate(final Date date) Formats the given date according to the RFC 1123 pattern.
| |
| formatDate | back to summary |
|---|---|
| public static String formatDate(final Date date, final String pattern) Formats the given date according to the specified pattern. The pattern
must conform to that used by the
| |
| parseDate | back to summary |
|---|---|
| public static Date parseDate(final String dateValue) throws DateParseException Parses a date value. The formats used for parsing the date value are retrieved from the default http params.
| |
| parseDate | back to summary |
|---|---|
| public static Date parseDate(final String dateValue, final String[] dateFormats) throws DateParseException Parses the date value using the given date formats.
| |
| parseDate | back to summary |
|---|---|
| public static Date parseDate(final String dateValue, final String[] dateFormats, final Date startDate) throws DateParseException Parses the date value using the given date formats.
| |