public final class DateUtils
extends java.lang.Object
DateUtils - Provides some date-related utility constants/methods| Modifier and Type | Method and Description |
|---|---|
static java.util.Date |
getDateRFC822(java.lang.String string)
Gets the corresponding instance of
Date from specified RFC822 date string |
static java.lang.String |
toStringRFC822(java.util.Date d)
Gets the corresponding RFC822 date string from specified instance of
Date |
static java.lang.String |
toStringRFC822(java.util.Date d,
java.util.TimeZone tz)
Gets the corresponding RFC822 date string from specified instance of
Date |
public static java.util.Date getDateRFC822(java.lang.String string)
Date from specified RFC822 date stringstring - The RFC822 date stringDatejava.lang.IllegalArgumentException - If specified string cannot be parsed to datepublic static java.lang.String toStringRFC822(java.util.Date d)
Dated - The instance of Date to convertpublic static java.lang.String toStringRFC822(java.util.Date d,
java.util.TimeZone tz)
Dated - The instance of Date to converttz - The time zone