Answers for "strtotime in javascript"

0

strtotime in javascript

You need to use the same time-zone for a same comparison:

echo strtotime("2011-01-26 13:51:50 GMT");
// 1296049910

var d = Date.parse("2011-01-26 13:51:50 GMT") / 1000;
console.log(d);
// 1296049910
Posted by: Guest on April-06-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language