public final class

DateTimeParser

extends Object
implements Parser<T>
java.lang.Object
   ↳ org.springframework.format.datetime.joda.DateTimeParser

Class Overview

Parses Joda Time DateTime instances using a DateTimeFormatter.

Summary

Public Constructors
DateTimeParser(DateTimeFormatter formatter)
Create a new DateTimeParser.
Public Methods
DateTime parse(String text, Locale locale)
Parse a text String to produce a T.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.format.Parser

Public Constructors

public DateTimeParser (DateTimeFormatter formatter)

Create a new DateTimeParser.

Parameters
formatter the Joda DateTimeFormatter instance

Public Methods

public DateTime parse (String text, Locale locale)

Parse a text String to produce a T.

Parameters
text the text string
locale the current user locale
Returns
  • an instance of T