cc.log(Date.parse(new Date().toString())) //获取当前的时间戳 为:1568259372000
cc.log(new Date(Date.parse(new Date().toString())))// 打印为 :Thu Sep 12 2019 11:36:12 GMT+0800 (中国标准时间)
let nowTime = new Date(Date.parse(new Date().toString())); //然后我用nowTime接住
cc.log(nowTime.getDate()) //获取今天是几号,我现在是2019年9月12号,所以打印的是12
cc.log(nowTime.getUTCDate()) //同上一样,都是打印的12
cc.log(nowTime.getDay()) //打印的是4,因为今天星期四
cc.log(nowTime.getFullYear()) //打印2019