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:12this 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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -