public class DateTimeFormatRenderer extends AbstractRenderer<java.util.Date>
Date
objects with a DateTimeFormat
.Constructor and Description |
---|
DateTimeFormatRenderer()
Create an instance using
DateTimeFormat.PredefinedFormat.DATE_SHORT . |
DateTimeFormatRenderer(DateTimeFormat format)
Create an instance with the given format and the default time zone.
|
DateTimeFormatRenderer(DateTimeFormat format,
TimeZone timeZone)
Create an instance with the given format and time zone.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
render(java.util.Date object)
Renders
object as plain text. |
render
public DateTimeFormatRenderer()
DateTimeFormat.PredefinedFormat.DATE_SHORT
.public DateTimeFormatRenderer(DateTimeFormat format)
public DateTimeFormatRenderer(DateTimeFormat format, TimeZone timeZone)
public java.lang.String render(java.util.Date object)
Renderer
object
as plain text. Should never throw any exceptions!