How to convert yyyy-mm-dd hh:mm:ss to unix timestamp in angularjs or javascript -
this question has answer here:
i got query how convert yyyy-mm-dd hh:mm:ss unix time-stamp using angularjs or javascript example:2015-04-17 10:12:12
this how date value how convert ??
new date("2015/04/29 11:24:00").gettime(); //for answer in milliseconds (new date("2015/04/29 11:24:00").gettime()/1000); //to answer in seconds
:)
Comments
Post a Comment