org.springframework.format.datetime.joda

## Class LocalDateParser

- java.lang.Object
- - org.springframework.format.datetime.joda.LocalDateParser

- All Implemented Interfaces:
    Parser<LocalDate>

      public final class LocalDateParser
      extends Object
      implements Parser<LocalDate>

  Parses Joda `LocalDate` instances using a `DateTimeFormatter`.
  Since:
    4.0
  Author:
    Juergen Hoeller

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LocalDateParser(DateTimeFormatter formatter)` Create a new DateTimeParser.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `LocalDate` | `parse(String text, Locale locale)` Parse a text String to produce a T.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### LocalDateParser

          public LocalDateParser(DateTimeFormatter formatter)

      Create a new DateTimeParser.
      Parameters:
        `formatter` - the Joda DateTimeFormatter instance

  - ### Method Detail

    - #### parse

          public LocalDate parse(String text,
                                 Locale locale)
                          throws ParseException

      Description copied from interface: `Parser`
      Parse a text String to produce a T.
      Specified by:
        `parse` in interface `Parser<LocalDate>`
      Parameters:
        `text` - the text string
        `locale` - the current user locale
      Returns:
        an instance of T
      Throws:
        `ParseException` - when a parse exception occurs in a java.text parsing library