org.apache.struts2.components.date

## Class SimpleDateFormatAdapter

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

- All Implemented Interfaces:
    DateFormatter

      public class SimpleDateFormatAdapter
      extends Object
      implements DateFormatter

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleDateFormatAdapter()`

  - ### 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

    - #### SimpleDateFormatAdapter

          public SimpleDateFormatAdapter()

  - ### 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–2024 Apache Software Foundation. All rights reserved.