Java Timestamp to String toString(Timestamp value)

Here you can find the source of toString(Timestamp value)

Description

to String

License

Open Source License

Declaration

public static String toString(Timestamp value) 

Method Source Code

//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;
    }
}

Related

  1. timestampToString(Timestamp ts)
  2. timestampToString(Timestamp ts, Calendar cal)
  3. timestampToStringFF(Timestamp date)
  4. timestampToUTC(Timestamp marcTimestamp)
  5. toString(Timestamp t, String precision)
  6. toStringFormatGMTTime(Timestamp time, String format)