Android Date Format formatData(Date date)

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

Description

format Data

Declaration

public static String formatData(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 DATE_FORMAT = new SimpleDateFormat(
            "yyyy-MM-dd");

    public static String formatData(Date date) {
        return DATE_FORMAT.format(date);
    }/*from   w  w w  .  ja  v a 2 s. c om*/
}

Related

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