Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert iso string to local date time in js

var startTimeISOString = "2013-03-10T02:00:00Z";

var startTime = new Date(startTimeISOString);
startTime = new Date(startTime.getTime() + (startTime.getTimezoneOffset() * 60000 ));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #iso #string #local #date #time #js
ADD COMMENT
Topic
Name
7+8 =