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

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

Introduction

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

Prototype

public static FastDateFormat getInstance(final String pattern) 

Source Link

Document

Gets a formatter instance using the specified pattern in the default locale.

Usage

From source file:com.smilonet.common.zk.ZkDateFormat.java

static public FastDateFormat getDayNumberFormater() {
    return FastDateFormat.getInstance(Labels.getLabel("format.dayNumber", "dd"));
}

From source file:com.smilonet.common.zk.ZkDateFormat.java

static public FastDateFormat getDaynameFormater() {
    return FastDateFormat.getInstance(Labels.getLabel("format.dayName", "EEE"));
}

From source file:com.smilonet.common.zk.ZkDateFormat.java

static public FastDateFormat getDayMonthFormater() {
    return FastDateFormat.getInstance(Labels.getLabel("format.DayMonth", "MM-dd"));
}

From source file:com.smilonet.common.zk.ZkDateFormat.java

static public FastDateFormat getDateFormater() {
    return FastDateFormat.getInstance(Labels.getLabel("format.date", "yyyy-MM-dd"));
}

From source file:com.savoirtech.logging.slf4j.json.LoggerFactory.java

public static void setDateFormatString(String dateFormatString) {
    LoggerFactory.dateFormatString = dateFormatString;
    LoggerFactory.formatter = FastDateFormat.getInstance(dateFormatString);
}

From source file:com.smilonet.common.zk.ZkDateFormat.java

static public FastDateFormat getMonth3DigitsFormater() {
    return FastDateFormat.getInstance(Labels.getLabel("format.month3digits", "MMM"));
}

From source file:com.smilonet.common.zk.ZkDateFormat.java

static public FastDateFormat getTimeFormater() {
    return FastDateFormat.getInstance(Labels.getLabel("format.time", "HH:mm"));
}

From source file:com.smilonet.common.zk.ZkDateFormat.java

static public FastDateFormat getTimeLongFormater() {
    return FastDateFormat.getInstance(Labels.getLabel("format.timelong", "HH:mm:ss"));
}

From source file:com.smilonet.common.zk.ZkDateFormat.java

static public FastDateFormat getDateTimeFormater() {
    return FastDateFormat.getInstance(Labels.getLabel("format.datetime", "yyyy-MM-dd HH:mm"));
}

From source file:com.naver.mage4j.core.util.PhpDateUtils.java

public static String formatDate(Date date, String pattern) {
    if (date == null) {
        return null;
    }//from   www .  j  a  va  2 s . c  o m

    return FastDateFormat.getInstance(pattern).format(date);
}