format unix date javascript code example Example: javascript date convert to unix new Date('2012.08.10').getTime() / 1000