public class DateFormatter extends Object implements ApplicationTool
Constructor and Description |
---|
DateFormatter() |
Modifier and Type | Method and Description |
---|---|
String |
format(Date theDate)
Formats the given date as a String using the default date format.
|
String |
format(Date theDate,
String dateFormatString)
Formats the given date as a String.
|
void |
init(Object data)
Initialize the application tool.
|
void |
refresh()
Refresh the application tool.
|
public DateFormatter()
public void init(Object data)
init
in interface ApplicationTool
data
- initialization datapublic void refresh()
refresh
in interface ApplicationTool
public String format(Date theDate)
theDate
- date to formatCopyright © 2000–2018 The Apache Software Foundation. All rights reserved.