Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert string to datetime javascript

var s = '01-01-1970 00:03:44';
var d = new Date(s);
console.log(d); // ---> Thu Jan 01 1970 00:03:44 GMT-0500 (Eastern Standard Time)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #string #datetime #javascript
ADD COMMENT
Topic
Name
1+7 =