Countdown From Specific Date From Mysql
Well this is probably easy for you guys but i seriously cant make it work. So What i would like to do is make a countdown based on the date from mysql and make it going down in liv
Solution 1:
You can do like this
var str = "2015-10-06 06:17:18"; // Your db format
str = str.replace(/-/g,"/");
var date = newDate(Date.parse(str));
Here in second line I am replacing delimiter - with / . This is because Date.parse() Expects delimiter as /
Post a Comment for "Countdown From Specific Date From Mysql"