Here you can find the source of toString(Timestamp value)
public static String toString(Timestamp value)
//package com.java2s; //License from project: Open Source License import java.sql.Timestamp; public class Main { public static String toString(Timestamp value) { String result = null;//from w w w. j a v a 2s .c o m if (value != null) { try { result = value.toString(); } catch (Exception ex) { // ex.printStackTrace(); } } return result; } }