安卓手机picker 时间选择 默认时间显示英文
发布于 5 年前 作者 ping29 12675 次浏览 来自 问答
let a = (new Date()).toLocaleDateString()//获取当前日期
       a = a.replace(/\//g, '-');//替换2017/05/03 为    2017-05-03
1 回复

let timestamp = Date.parse(new Date());

timestamp = timestamp / 1000;

let today = time.customTime(timestamp, ‘Y-M-D’);

定义下时间格式就行了

回到顶部