Java String to Timestamp timeStamp2Date(String timestampString)

Here you can find the source of timeStamp2Date(String timestampString)

Description

time Stamp Date

License

Apache License

Declaration

public static String timeStamp2Date(String timestampString) 

Method Source Code

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

public class Main {

    public static String timeStamp2Date(String timestampString) {
        Long timestamp = Long.parseLong(timestampString) * 1000;
        String date = new java.text.SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(new java.util.Date(timestamp));
        return date;
    }//from   w w w .j a  v  a2s  .c om
}

Related

  1. isTimeStampValid(String timestamp)
  2. string2Timestamp(String dateString, String timezone)
  3. string2timestamp(String timeString)
  4. stringToTimestamp(String date)
  5. timestamp(String string)
  6. timeStampToDate(String timeStamp)
  7. toTimeStamp(String argS)
  8. toTimeStamp(String myDate, String pattern, Locale language)
  9. toTimestamp(String source)