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