new Date, Date.parse () by value

Get Time:

1997 acquisition date of October 1

new Date:

When - UTC time zone will be used to resolve parameters stitching date, it will be faster than Beijing eight hours.

Then use / will use Beijing when splicing date time zone to resolve parameters are taken into Beijing.

Date.parse

The UTC time: use  splicing

Gets GMT: Use  splicing

 

Guess you like

Origin www.cnblogs.com/bravefuture/p/11315260.html