List of usage examples for org.apache.commons.lang3.time FastDateFormat getDateInstance
public static FastDateFormat getDateInstance(final int style, final TimeZone timeZone)
Gets a date formatter instance using the specified style and time zone in the default locale.
From source file:info.magnolia.ui.workbench.column.DateColumnFormatter.java
@Inject public DateColumnFormatter(AbstractColumnDefinition definition) { super(definition); final Locale locale = MgnlContext.getLocale(); dateFormatter = FastDateFormat.getDateInstance(FastDateFormat.MEDIUM, locale); timeFormatter = FastDateFormat.getTimeInstance(FastDateFormat.SHORT, locale); }
From source file:edu.txstate.its.gato.apputil.DateOnlyColumnFormatter.java
@Inject public DateOnlyColumnFormatter(AbstractColumnDefinition definition) { super(definition); final Locale locale = MgnlContext.getLocale(); dateFormatter = FastDateFormat.getDateInstance(FastDateFormat.MEDIUM, locale); }