Java yyyy format(Date pDt)

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

Description

format

License

LGPL

Declaration

public final static String format(Date pDt) 

Method Source Code


//package com.java2s;
//License from project: LGPL 

import java.text.SimpleDateFormat;
import java.util.Date;

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

    public final static String format(Date pDt) {
        return formatter.format(pDt);
    }/*w ww.  j ava  2s. com*/

    public final static String format(Date pDt, String psFormato) {
        return new SimpleDateFormat(psFormato).format(pDt);
    }
}

Related

  1. format(Date date)
  2. format(Date date)
  3. format(Date date, String format)
  4. format(Date date, String pattern)
  5. format(Date date, String pattern)
  6. format(final Date date, final String pattern)
  7. format(final java.util.Date date, final String sFormat)
  8. format(java.util.Date date)
  9. format(java.util.Date date)