Constructor and Description |
---|
DateTimeParser(org.joda.time.format.DateTimeFormatter formatter)
Create a new DateTimeParser.
|
public DateTimeParser(org.joda.time.format.DateTimeFormatter formatter)
formatter
- the Joda DateTimeFormatter instancepublic org.joda.time.DateTime parse(String text, Locale locale) throws ParseException
Parser
parse
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 © 2012. All Rights Reserved.