Java Hour Format formatFF(String date)

Here you can find the source of formatFF(String date)

Description

format FF

License

LGPL

Declaration

public static Date formatFF(String date) 

Method Source Code

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

Related

  1. formateDate(Date date, String format)
  2. forMateDate(String dateStr)
  3. formateDaTime(Date date)
  4. formateEndTimeString(String time)
  5. formatEndTime(String datePre)
  6. formatFileDate(Date from)
  7. formatFilesystemOrder(Date date)
  8. formatForCookieExpiry(Date date)
  9. formatForFileName()