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