扫码关注官方订阅号
2016-11-25 12:19 转化为 25 Dec 2016 12:19
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
var monthsInEng = ['jan', 'feb', 'march'...]; var date = new Date(); console.log( date.getDate() + ' ' + monthsInEng[date.getMonth()] + ' ' + date.getFullYear()
);
试试看
var _time = new Date(2016,11,25,12,19); //var _format = _time.toDateString(); //console.log(_format); //这样呢! var _format = new Date(Date.UTC(2016,11,25,12,19)); console.log(_format);
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
);
试试看