Here you can find the source of getTimeStampAsString(Timestamp formatTime)
public static String getTimeStampAsString(Timestamp formatTime)
//package com.java2s; import java.sql.Timestamp; import java.text.SimpleDateFormat; public class Main { public static String getTimeStampAsString(Timestamp formatTime) { SimpleDateFormat m_format = new SimpleDateFormat("yyyy-MM-dd HH:mm"); return m_format.format(formatTime); }//from w w w .ja v a 2 s . c o m }