java.util.Date and java.util.Calendar) to a formatted
date String.
The reverse conversion is not supported.
The date patterns must follow the pattern rules of SimpleDateFormat
SimpleDateFormat
| Modifier and Type | Field and Description |
|---|---|
| private final SimpleDateFormat | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | FormattedDateConversion(String
The pattern to be used to convert an input date into a String in format, Locale FormattedDateConversion#execute(Object).the locale, String Locale that determines how the date mask should be formatted.default String value to be returned when an input is valueIfObjectIsNull)null . Used when FormattedDateConversion#execute(Object) is invoked with a null parameter.
|
| Modifier and Type | Method and Description |
|---|---|
| public String | execute(Object
the input of type I to be converted to an object of type O input)Implements com. |
| public Object | Returns: throws aUnsupportedOperationExceptionthe input be converted. input)Implements com. |
| dateFormat | back to summary |
|---|---|
| private final SimpleDateFormat dateFormat | |
| valueIfObjectIsNull | back to summary |
|---|---|
| private final String valueIfObjectIsNull | |
| FormattedDateConversion | back to summary |
|---|---|
public FormattedDateConversion(String format, Locale locale, String valueIfObjectIsNull)
| |
| execute | back to summary |
|---|---|
| public String execute(Object input) Implements com. Doc from com. Converts a value of type I to a value of type O.
When used in conjunction with the | |
| revert | back to summary |
|---|---|
| public Object revert(String input) Implements com. Unsupported operation. | |