Android Date Format formatDate(Date date)

Here you can find the source of formatDate(Date date)

Description

format Date

Declaration

public static String formatDate(Date date) 

Method Source Code

//package com.java2s;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class Main {
    public static final SimpleDateFormat DATE_FORMAT_YYYYMMDD_HHMMSS = new SimpleDateFormat(
            "yyyy-MM-dd HH:mm:ss", Locale.getDefault());

    public static String formatDate(Date date) {
        return DATE_FORMAT_YYYYMMDD_HHMMSS.format(date);
    }/*from ww w .j a  v a2 s .  com*/
}

Related

  1. getFormatedDate(Date date, String format)
  2. dateFormat(String sdate, String format)
  3. dateFormat(String sdate, String format)
  4. formatcurrentDate(int format)
  5. formatDataTime(Date date)
  6. formatDate(Date date)
  7. formatDate(Date date)
  8. formatDate(Date date, String pattern)
  9. formatDate(Date date, String pattern, Locale locale)