Search in sources :

Example 1 with FastDateFormat

use of org.frameworkset.util.FastDateFormat in project bboss-elastic by bbossgroups.

the class ESTest method testFastDateFormat.

@Test
public void testFastDateFormat() throws ParseException {
    String data = "2005-01-10 12:00:00";
    String format = "yyyy-MM-dd HH:mm:ss";
    FastDateFormat df = FastDateFormat.getInstance(format, TimeZone.getTimeZone("Asia/Shanghai"));
    Object ojb = df.parseObject(data);
    System.out.println();
}
Also used : FastDateFormat(org.frameworkset.util.FastDateFormat) Test(org.junit.Test)

Aggregations

FastDateFormat (org.frameworkset.util.FastDateFormat)1 Test (org.junit.Test)1