安卓手机picker 时间选择 默认时间显示英文

发布于 7 年前作者 ping2912829 次浏览最后编辑 7 年前来自 ask
let a = (new Date()).toLocaleDateString()//获取当前日期
       a = a.replace(/\//g, '-');//替换2017/05/03 为    2017-05-03
1 回复
rmeng
rmeng1 楼5 年前

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

timestamp = timestamp / 1000;

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

定义下时间格式就行了