Here you can find the source of getLongDateStr(Date sDate)
public static String getLongDateStr(Date sDate)
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String getLongDateStr(Date sDate) { if (sDate == null) return ""; return new SimpleDateFormat("yyyy-MM-dd kk:mm:ss").format(sDate); }/* ww w. ja va 2s.c o m*/ }