Java Timestamp Convert To TimestampToDateStr(Timestamp tmp)

Here you can find the source of TimestampToDateStr(Timestamp tmp)

Description

Timestamp To Date Str

License

Apache License

Declaration

public static String TimestampToDateStr(Timestamp tmp) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.sql.Timestamp;

import java.text.SimpleDateFormat;

public class Main {
    public static final SimpleDateFormat SHORT_DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd");

    public static String TimestampToDateStr(Timestamp tmp) {
        return SHORT_DATE_FORMAT.format(tmp);
    }/*from   w  w  w.j  a v  a  2  s .co  m*/
}

Related

  1. timestampToCalendar(Timestamp time)
  2. TimestampToDate(Integer time)
  3. timestampToDate(java.sql.Timestamp ts)
  4. timeStampToDate(Timestamp tim)
  5. timestampToDate(Timestamp tt)
  6. timestampToDateString(Timestamp ts)
  7. timestampToDayNumber(long timestamp)
  8. timestampToInternal(java.sql.Timestamp ts)
  9. timestampToLong(Timestamp ts)