javascript - How to convert the month in the date to English display in js?
高洛峰
高洛峰 2017-05-19 10:37:04
0
2
517

2016-11-25 12:19 converted to 25 Dec 2016 12:19

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
黄舟
var monthsInEng = ['jan', 'feb', 'march'...];
var date = new Date();
console.log( 
   date.getDate() + 
   ' ' +
   monthsInEng[date.getMonth()] +
   ' ' + 
   date.getFullYear()

);

给我你的怀抱

Try it

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);
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template