public class DateTimeFormatRenderer extends AbstractRenderer<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 |
---|---|
String |
render(Date object)
Renders
object as plain text. |
render
public DateTimeFormatRenderer()
DateTimeFormat.PredefinedFormat.DATE_SHORT
.public DateTimeFormatRenderer(DateTimeFormat format)
public DateTimeFormatRenderer(DateTimeFormat format, TimeZone timeZone)
Copyright © 2018. All rights reserved.