Here you can find the source of format(Date date)
Parameter | Description |
---|---|
dataInstalacao | Date |
public static String format(Date date)
//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); } }