convert miliseconds to unix javascript code example
Example 1: javascript date convert to unix
new Date('2012.08.10').getTime() / 1000
Example 2: convert date to unix timestamp javascript
new Date('2012.08.10').getTime() / 1000 //secs
new Date('2012.08.10').getTime() //milliseconds