Android Date Format getDisplayDate(Date date, String format)

Here you can find the source of getDisplayDate(Date date, String format)

Description

get Display Date

License

Apache License

Declaration

public static String getDisplayDate(Date date, String format) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;

import java.util.Date;
import java.util.Locale;

public class Main {
    public static String getDisplayDate(Date date, String format) {
        SimpleDateFormat formatter = new SimpleDateFormat(format,
                Locale.getDefault());
        return formatter.format(date);
    }/*  w  w w.j  av  a 2  s . co m*/
}

Related

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