Android Date Format formatDate(final Date date)

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

Description

format Date

Declaration

public static String formatDate(final Date date) 

Method Source Code

//package com.java2s;

import java.util.Date;

import android.text.format.DateFormat;

public class Main {
    private static String dateFormatString = "dd/MM/yyyy";

    public static String formatDate(final Date date) {
        return DateFormat.format(dateFormatString, date).toString();
    }//from  w  w  w. jav a  2s.  c  o  m
}

Related

  1. toStringUS(Date date)
  2. toTimeString(Date value)
  3. format(Date date)
  4. format(Date date, String pattern)
  5. formatData(Date date)
  6. getStringFromDate(Date date, String format)
  7. getFormatTomorrow(String format)
  8. getDisplayDate(Date date, String format)
  9. getFormatedDate(Date date, String format)