Java yyyy format(Date date)

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

Description

Converte uma data para String no formato dd/MM/yyyy.

License

Open Source License

Parameter

Parameter Description
dataInstalacao Date

Return

String

Declaration

public static String format(Date date) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    private static final SimpleDateFormat DEFAULT = new SimpleDateFormat("dd/MM/yyyy");

    /**/* ww  w .j a va2  s .  co  m*/
     * 
     * 
     * Converte uma data para String no formato <b>dd/MM/yyyy<b>.
     * 
     * <pre>
     * @param dataInstalacao Date
     * @return String
     * </pre>
     */
    public static String format(Date date) {
        return DEFAULT.format(date);
    }
}

Related

  1. format(Date date)
  2. format(Date date)
  3. format(Date date)
  4. format(Date date)
  5. format(Date date)
  6. format(Date date, String format)
  7. format(Date date, String pattern)
  8. format(Date date, String pattern)
  9. format(Date pDt)