| Constructor and Description |
|---|
DateTimeParser(org.joda.time.format.DateTimeFormatter formatter)
Create a new DateTimeParser.
|
| Modifier and Type | Method and Description |
|---|---|
org.joda.time.DateTime |
parse(String text,
Locale locale)
Parse a text String to produce a T.
|
public DateTimeParser(org.joda.time.format.DateTimeFormatter formatter)
formatter - the Joda DateTimeFormatter instancepublic org.joda.time.DateTime parse(String text, Locale locale) throws ParseException
Parserparse in interface Parser<org.joda.time.DateTime>text - the text stringlocale - the current user localeParseException - when a parse exception occurs in a java.text parsing libraryCopyright © 2015. All rights reserved.