Java Date to String dateToString(Date fecha)

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

Description

date To String

License

Open Source License

Declaration

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

    public static String dateToString(Date fecha) {
        try {//from w  w  w .j a  va2  s .  c  o  m
            return formatoFecha.format(fecha);
        } catch (Exception e) {
            return "";
        }
    }
}

Related

  1. dateToString(Date date, String pattern)
  2. dateToString(Date date, String sPattern)
  3. dateToString(Date date, String strFormat)
  4. datetostring(Date dateInst)
  5. DateToString(Date Expression)
  6. DateToString(Date fecha, String formato)
  7. dateToString(Date pd_fecha)
  8. dateToString(Date pDate, String pFormat)
  9. dateToString(Date pdttValue, String pstrDateFormat)