Example usage for org.apache.commons.lang3.time FastDateFormat getDateInstance

List of usage examples for org.apache.commons.lang3.time FastDateFormat getDateInstance

Introduction

In this page you can find the example usage for org.apache.commons.lang3.time FastDateFormat getDateInstance.

Prototype

public static FastDateFormat getDateInstance(final int style, final TimeZone timeZone) 

Source Link

Document

Gets a date formatter instance using the specified style and time zone in the default locale.

Usage

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);
}