org.apache.struts2.components.date

## Class DateTimeFormatterAdapter

- java.lang.Object
- - org.apache.struts2.components.date.DateTimeFormatterAdapter

- All Implemented Interfaces:
    DateFormatter

      public class DateTimeFormatterAdapter
      extends Object
      implements DateFormatter

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DateTimeFormatterAdapter()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `format(TemporalAccessor temporal, String format)` Formats provided temporal with the given format

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

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

- - ### Constructor Detail

    - #### DateTimeFormatterAdapter

          public DateTimeFormatterAdapter()

  - ### Method Detail

    - #### format

          public String format(TemporalAccessor temporal,
                               String format)

      Description copied from interface: `DateFormatter`
      Formats provided temporal with the given format
      Specified by:
        `format` in interface `DateFormatter`
      Parameters:
        `temporal` - Java 8 `TemporalAccessor`
        `format` - implementation specific format
      Returns:
        a string representation of the formatted `temporal`

Copyright © 2000–2026 Apache Software Foundation. All rights reserved.