Java yyyy formatFecha(Date fecha)

Here you can find the source of formatFecha(Date fecha)

Description

format Fecha

License

Open Source License

Declaration

public static String formatFecha(Date fecha) 

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 String PATRON_FECHA = "dd/mm/yyyy";

    public static String formatFecha(Date fecha) {
        SimpleDateFormat sdf = new SimpleDateFormat(PATRON_FECHA);
        return sdf.format(fecha);
    }//from  ww  w .  j  a v a 2  s .c  om
}

Related

  1. formatDateString(java.util.Date date, String format)
  2. formatDateToString(Date d)
  3. formatDateToString(String strDate)
  4. formatDicomDate(String dicomDate)
  5. formatearDateToString(Date date)
  6. formatFromDate(Date date)
  7. formatG(Date date)
  8. formatHL7TSFormat4Date(Date time)
  9. formatJJJJMMTT(long time)