Java yyyy formatarData(String pattern, Date data)

Here you can find the source of formatarData(String pattern, Date data)

Description

formatar Data

License

Apache License

Declaration

public static String formatarData(String pattern, Date data) 

Method Source Code

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

import java.text.SimpleDateFormat;
import java.util.*;

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

    public static String formatarData(String pattern, Date data) {
        SimpleDateFormat dateFormat = new SimpleDateFormat(pattern);
        return dateFormat.format(data);
    }//from   w ww.  jav a  2  s .c o m

    public static String format(Date data) {
        return sdf.format(data);
    }
}

Related

  1. format2(Date data)
  2. format6chars(Date date)
  3. format6chars(Date date, TimeZone tz)
  4. formatAddDate(String src, String pattern, int amount)
  5. formatarData(Date data)
  6. formatarDataArquivo(Date data)
  7. formatAsCassandraDate(Date date)
  8. formatAsNumber(Date date)
  9. formatBySlashForm(Date aDate)