Here you can find the source of formatFF(String date)
public static Date formatFF(String date)
//package com.java2s; //License from project: LGPL import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static final String FORMAT_STYLE_F = "yyyy-MM-dd HH:mm:ss"; public static Date formatFF(String date) { SimpleDateFormat sdf = new SimpleDateFormat(FORMAT_STYLE_F); try {/* www . j a v a2 s.com*/ if (null != date && !"".equals(date)) { return sdf.parse(date); } } catch (ParseException e) { e.printStackTrace(); } return null; } }