Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

save date time without timezone to databse javascript

var date = new Date('2016-08-25T00:00:00')
var userTimezoneOffset = date.getTimezoneOffset() * 60000;
new Date(date.getTime() - userTimezoneOffset);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #save #date #time #timezone #databse #javascript
ADD COMMENT
Topic
Name
5+8 =