change time to unix timestamp in Javascript code example
Example: convert datetime to timestamp javascript
function toTimestamp(strDate){ var datum = Date.parse(strDate); return datum/1000;}
function toTimestamp(strDate){ var datum = Date.parse(strDate); return datum/1000;}