Android Date Format formatDataTime(Date date)

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

Description

format Data Time

Declaration

public static String formatDataTime(Date date) 

Method Source Code

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

public class Main {
    public static final DateFormat DATETIME_FORMAT = new SimpleDateFormat(
            "yyyy-MM-dd HH:mm:ss");

    public static String formatDataTime(Date date) {
        return DATETIME_FORMAT.format(date);
    }/*from   w  ww . j a  v a2 s.c  o m*/
}

Related

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