function userDate(uData){
var myDate = new Date(uData);
var year = myDate.getFullYear();
var month = myDate.getMonth() + 1;
var day = myDate.getDate();
return year + "-" + month + "-" + day;
}
function userDate(uData){
var myDate = new Date(uData);
var year = myDate.getFullYear();
var month = myDate.getMonth() + 1;
var day = myDate.getDate();
return year + "-" + month + "-" + day;
}
本文标题:js 时间戳转日期
本文链接:https://www.haomeiwen.com/subject/lnchqftx.html
网友评论