Java Timestamp Field getStamp(Timestamp timestamp)

Here you can find the source of getStamp(Timestamp timestamp)

Description

get Stamp

License

Apache License

Declaration

public static String getStamp(Timestamp timestamp) 

Method Source Code


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

import java.sql.Timestamp;

public class Main {
    public static String getStamp(Timestamp timestamp) {
        String stamp = timestamp.toString();
        stamp = stamp.replaceAll("-", "");
        stamp = stamp.replaceAll(":", "");
        stamp = stamp.replaceAll("\\.", "");
        stamp = stamp.replaceAll(" ", "");
        return stamp;
    }/*from  www.  j av  a  2 s .co m*/
}

Related

  1. getSqlTimeStamp()
  2. getSqlTimeStamp(java.util.Date date)
  3. getSQLTimeStampForDate(Date date)
  4. getSqlTimestampFromMicrosSinceEpoch( long timestamp)
  5. getSqlTimestampFromShortDate(String date)
  6. getStringToTimestamp(String str)
  7. getstrTimestamp(String datetime)
  8. getSysDateTimestamp()
  9. getSystemTimestamp()