<!doctype html> <html> <head> <title>Unix时间戳转换成日期格式</title> <script> var a = FormatDateTime("/Date(1497232433000)/") var b = FormatDateTime("1497232740000") console.log(a); //2017-06-12 09:53:53 cons…
public String TimeStamp2Date(String timestampString, String formats){ Long timestamp = Long.parseLong(timestampString)*1000; String date = new java.text.SimpleDateFormat(formats).format(new java.util.Date(timestamp)); return date; } 当调用Ti…