java后台怎么把传给前台的timestamp类型的数据在前端显示"2016-11-11 时分秒"?

现在遇见一个问题, 在后台打印出来的timestamp类型的数据是2016-11-11 15:03:0
但是在前端显示就是1400556795毫秒数,怎么把毫秒数变为2016-11-11 15:03:0的格式显示在前端
请懂得大神指教

在java后台把timestamp转string(日期格式),然后传到js前端即可。
http://www.cnblogs.com/Matrix54/archive/2012/05/03/2481260.html

 var timestamp3 = 400556795;
var newDate = new Date();
newDate.setTime(timestamp3 * 1000);
alert(newDate.toDateString());