Here you can find the source of toSloTime(Timestamp time)
public static String toSloTime(Timestamp time)
//package com.java2s; import java.sql.Timestamp; import java.text.SimpleDateFormat; import java.util.Calendar; public class Main { public static String toSloTime(Timestamp time) { if (time == null) return ""; Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time.getTime()); SimpleDateFormat sdf = new SimpleDateFormat("d.M.yyyy H:mm"); return sdf.format(cal.getTime()); }/* w w w. ja v a 2s .co m*/ }