Js time format Thu Nov 08 2018 00:00:00 GMT+0800 (China Standard time)

The

project uses vue--iview. The time format returned by the background interface console is printed out as 2018-11-0800: 00 GMT+0800. Why does it become Thu Nov 08 2018 00:00:00 GMT+0800 (Chinese Standard time) format after assigning this.dates=res.data.times to be used elsewhere?

Oct.12,2021

first determine whether your front end is using a Date or a date format String .
secondly, how will it be converted to a string if it is Date . Date toString


just set the event display format, right? If you are using the time component, there should be a formatter function to set the time.


means that what you are printing is not the same thing

Menu