I want to convert a string \"2013-09-05 15:34:00\" into a Unix timestamp in javascript. Can any one tell how to do that? thanks.
\"2013-09-05 15:34:00\"
For this you should check out the moment.s-library
Using that you could write something like:
newUnixTimeStamp = moment('2013-09-05 15:34:00', 'YYYY-MM-DD HH:mm:ss').unix();