Java yyyy format2(Date data)

Here you can find the source of format2(Date data)

Description

format

License

Apache License

Declaration

public static String format2(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");
    private static SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy_MM_dd");

    public static String format2(Date data) {
        return sdf2.format(data);
    }/*from  w ww .j av a  2s  . c  om*/

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

Related

  1. format(java.util.Date date, String pattern)
  2. format(Object value, String pattern)
  3. format(ResourceBundle idioma, Date date)
  4. format(String dateString)
  5. format(String oldPattern, String newPattern, String data)
  6. format6chars(Date date)
  7. format6chars(Date date, TimeZone tz)
  8. formatAddDate(String src, String pattern, int amount)
  9. formatarData(Date data)