public class FormatHelper
extends java.lang.Object
Constructor and Description |
---|
FormatHelper(I18nToolsService i18nToolsService) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatLongDate(java.util.Date date) |
java.lang.String |
formatLongDateTime(java.util.Date date)
Deprecated.
|
java.lang.String |
formatLongDateTime(java.time.ZonedDateTime dateTime) |
java.lang.String |
formatLongTime(java.util.Date date) |
java.lang.String |
formatShortDate(java.util.Date date) |
java.lang.String |
formatShortDateTime(java.util.Date date) |
java.lang.String |
formatShortTime(java.util.Date date) |
public FormatHelper(I18nToolsService i18nToolsService)
public java.lang.String formatShortDate(java.util.Date date)
public java.lang.String formatLongDate(java.util.Date date)
public java.lang.String formatShortTime(java.util.Date date)
public java.lang.String formatLongTime(java.util.Date date)
public java.lang.String formatShortDateTime(java.util.Date date)
public java.lang.String formatLongDateTime(java.util.Date date)
formatLongDateTime(ZonedDateTime)
date
- format datepublic java.lang.String formatLongDateTime(java.time.ZonedDateTime dateTime)