Quantcast
Viewing all articles
Browse latest Browse all 3189

Re: change the date pattern in a table

getTime is just to calculate time zone offset.

 

new Date( date.getTime() + new Date(date.getTime()).getTimezoneOffset()*60*1000 )


it is


Return value

The value returned by the getTime() method is the number of milliseconds since 1 January 1970 00:00:00 UTC.


Viewing all articles
Browse latest Browse all 3189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>