Java Timestamp Format TimeStamp2Date(long timestampString, String formats)

Here you can find the source of TimeStamp2Date(long timestampString, String formats)

Description

Time Stamp Date

License

Open Source License

Declaration

public static String TimeStamp2Date(long timestampString, String formats) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.SimpleDateFormat;
import java.util.*;

public class Main {
    public static String TimeStamp2Date(long timestampString, String formats) {
        Long timestamp = timestampString;
        String date = new SimpleDateFormat(formats).format(new Date(
                timestamp));/*from  ww  w .j  a  v a  2s. com*/
        return date;
    }
}

Related

  1. getTimeStampFormat(Date date)
  2. getTimeStampFormat(Date date)
  3. getTimestampFormat(long time)
  4. sortedTimestampFormat(Date date)
  5. stringConvertToTimestamp(String value, String format)
  6. timeStamp2Date(String seconds, String format)
  7. Timestamp2DDMMYYYY(java.sql.Timestamp ts)
  8. Timestamp2HHMMSS(java.sql.Timestamp ts, int iStyle)
  9. timestamp2String(long source, DateFormat format)