Java Timestamp Create getTimeStampAsString(Timestamp formatTime)

Here you can find the source of getTimeStampAsString(Timestamp formatTime)

Description

get Time Stamp As String

License

Open Source License

Declaration

public static String getTimeStampAsString(Timestamp formatTime) 

Method Source Code


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

Related

  1. getTimestamp(String str)
  2. getTimestamp(String Str)
  3. getTimestamp(String strDate)
  4. getTimestamp(String time, String pattern)
  5. getTimestamp2()
  6. getTimestampAsString(Timestamp tsTimestamp)
  7. getTimestampAtMidnightForDaysAgo(int days)
  8. getTimestampBeforeMs(long someMs)
  9. getTimeStampByFormat(String style)