Here you can find the source of format_default(Date time)
public static String format_default(Date time)
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static SimpleDateFormat FORMATER_3 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); public static String format_default(Date time) { return FORMATER_3.format(time); }// w ww . j a v a2s. co m }