Here you can find the source of dateFormat3(Date date)
public static String dateFormat3(Date date)
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static SimpleDateFormat sdf3 = new SimpleDateFormat("yyyy/MM/dd HH:mm"); public static String dateFormat3(Date date) { if (date == null) { return null; } else {// ww w . j a v a2 s.c o m return sdf3.format(date); } } }