Heim > Fragen und Antworten > Hauptteil
25.11.2016 12:19 umgerechnet auf 25.12.2016 12:19
黄舟2017-05-19 10:39:04
1
2
3
4
5
6
7
8
<code>var monthsInEng = ['jan', 'feb', 'march'...];
<code>
var
monthsInEng = [
'jan'
,
'feb'
'march'
...];
var date = new Date();
date
=
new
Date
();
console.log(
date.getDate() +
.
getDate
() +
' ' +
' '
+
monthsInEng[date.getMonth()] +
monthsInEng[
.getMonth()] +
date.getFullYear()</code>
.getFullYear()</code>
);
给我你的怀抱2017-05-19 10:39:04
试试看
<code>var _time = new Date(2016,11,25,12,19);
_time =
(2016,11,25,12,19);
//var _format = _time.toDateString();
//console.log(_format);
//这样呢!
var _format = new Date(Date.UTC(2016,11,25,12,19));
_format =
(
.UTC(2016,11,25,12,19));
console.log(_format);</code>