public class MailDateTime extends Object
Constructor and Description |
---|
MailDateTime(String date,
String dateStyle,
String timeStyle,
String lang)
Constructs a formatted date time instance.
|
public MailDateTime(String date, String dateStyle, String timeStyle, String lang) throws ParseException
date
- A date in RFC 2822 syntaxdateStyle
- The requested date style (allowed values: FULL
,
MEDIUM
, SHORT
and DEFAULT
)timeStyle
- The requested time style (see parameter dateStyle
)lang
- The requested language (IETF BCP 47, e.g. en
or de
)ParseException
- If the given date is not in RFC 2822 syntaxDateFormat
,
Locale.forLanguageTag(String)
public static Date parse(String s) throws ParseException
ParseException
Copyright © 2017 levigo holding gmbh. All rights reserved.