@Deprecated public final class LocalDateParser extends Object implements Parser<LocalDate>
LocalDate
instances using a
DateTimeFormatter
.Constructor and Description |
---|
LocalDateParser(DateTimeFormatter formatter)
Deprecated.
Create a new DateTimeParser.
|
Modifier and Type | Method and Description |
---|---|
LocalDate |
parse(String text,
Locale locale)
Deprecated.
Parse a text String to produce a T.
|
public LocalDateParser(DateTimeFormatter formatter)
formatter
- the Joda DateTimeFormatter instancepublic LocalDate parse(String text, Locale locale) throws ParseException
Parser
parse
in interface Parser<LocalDate>
text
- the text stringlocale
- the current user localeParseException
- when a parse exception occurs in a java.text parsing library