convert date to unix time js code example
Example 1: javascript date convert to unix
new Date('2012.08.10').getTime() / 1000
Example 2: convert datetime to timestamp javascript
function toTimestamp(strDate){ var datum = Date.parse(strDate); return datum/1000;}